Using a while loop in Python to maintain a counter and a running total

preview_player
Показать описание
Maintaining a counter and computing a running total
Рекомендации по теме
Комментарии
Автор

I'm in my first month of learning python and was having a bit of trouble getting the while loop to change my counter variable. This video was so clear, I don't think I'll forget this concept anytime soon, thanks for the help !

frambuella
Автор

Thanks! I just started my full stack developer courses and I was struggling with one of the Python lab exercise. This helped me because the principle is the same here.

Jymp
Автор

Thank you for the help 7.5 years after posting this. Still useful!

connoranderson
Автор

Thank you! You helped me wrap my brain around an issue I was having. You rock. :)

artbylucentgem
Автор

Really clear and straightforward to understand!

mhondr
Автор

Finally!! Someone that actually shows how to apply while loops in an actual scenario. I watch 20 other YouTubers use the same x=0 x+1 example which was not helpful at all so thank you for this!! 🙌🙌

AddiVie
Автор

Thank you for this very clear explanation it made a lot of sense. Very much appreciated

AJAX
Автор

I enjoyed that tutorial, thank you. Very productive way to use the while loop.

danielbirdsall
Автор

Awesome, thank you. You explain so well.

fredamills
Автор

This vid helped me with my homework thx

djKafelka
Автор

Thanks Mark I am studying Python and I am a begginer and this video helped me up a lot! Have a great day! By the way I use linux mint! I think your using ubuntu. The Linux Mint mother.

perezreve
Автор

This just saved my homework ^_^ Thanks!

lexx
Автор

Thanks for this video! very clear


I still got a question

How can I make it run from the beginning witout restarting the programme?
Like starting again making a new calculation, maybe for the 2nd waiter or the next day, so i want to enter tip amounts again. How could I do that? With a loop?

bibizarre
Автор

why did you set the values equal to 0 in the beginning before the while loop?

jasawnabowen
Автор

What if the waiter mistakenly enters a negative number which does not make sense? The program still runs the calculation :)

ryanli
Автор

This is very helpful. I'm doing something similar to this, but I'm checking for average test scores with boys vs girls. Is there a way to increment the two in the same loop? I keep getting a syntax error for indention.

jemhonu
Автор

Hi Mark, i'm new to coding and i needed some help with my code. I need to create a molecular mass calculator and so far i have created variables and assigned their atomic mass. I've used a for loop and if/else statements in my code and so far it can recognise the letter and print out its atomic value one under the other. I need help to be able to add them.

suhanibedi
Автор

What if i want to know the highst tip how do i use MAX

noned
Автор

what about doing it on windows is it different

matiasconscious
Автор

you sound a bit like bruce willis, nice vid tho!

johnchristian