Python Part 3 - Ranges, loops and formatting

preview_player
Показать описание
By Andy Brown

This video will show you how to use while loops to do things while a condition is true, how to print out information so that it's formatted neatly and how to use ranges to loop over sequences of numbers: all good building blocks in the foundation of your Python learning.

Chapters
00:00 Topic list
00:59 While loops
06:20 Ending loops prematurely
09:40 Basic formatting
14:39 Formatting numbers
19:43 Iterators and for loops
22:29 Ranges
30:27 Nesting ranges

If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can join this channel to get access to perks:

Рекомендации по теме
Комментарии
Автор

Just to add - very much enjoying the series - great effort by WiseOwl people

anthonymurphy
Автор

Great video! Looking forward to seeing where this series is heading!

juanpablohorn
Автор

Yeeeesss, have seen this had been uploaded for a week or two now but only accessible to fully paid up members until now, I've been looking forward to the next instalment. Definitely think Python is gonna be the next string I add to my bow.

VincentHardwick
Автор

Thank you so much
I try to do the prime number by myself using while loop
My code was so confusing
When I look at your code it was way easier to read XD
Will be waiting for the next video Cheer!!

bigger
Автор

Great video, thank you. Looking forward to the next one!

martinamaresova
Автор

Great Job Sir. Waiting the next one on next Monday as usual

MohamedAshraf-orrd
Автор

I'm loving the videos. Really helpful in getting me to finally learn Python. Thanks a bunch! I am struggling with the "While Else" though. It seems like it will display the "Else" statement one the "While" statement is no longer true. So It will always show eventually, not just if the while is never true.

johnvasko
Автор

Hello Andy! I have a query about this.. at 6:16 using while/else.
By adding else condition in the code, when we begin the code with let's say i = 1. the code always print "Never executes" at the end along with other output. Any help on this?

kd_tiwari
Автор

Thanks Andy for this good explanation
I have questions
1 - The application does not perform autosave.
A - How do I carry out the procedure step by step.
Thanks in advance

youssefsedkey
Автор

Great instructional Python Videos! Do you in the forcible future will teach how to program with Python excel spreadsheets?

robguzman
Автор

Sir! Thank you so much for helping us developing our skills. What I am now is because of Wise Owl Tutorials.

I have a doubt in this video; below is the output when I execute the code. Want to know why my else code is also running. Let me know if I am doing anything wrong.

karthickrajan
Автор

Hello Andy! Thank you for a great tutorial. I was wondering... How is Annie and Neo doing today?

husarzwadca
Автор

Thanks a lot for the tremendous value!

One quick question though. At the end of every output in the terminal window Visual Studio puts "PS" and then the path to where the file is saved. How can I turn that off. I don't need to see that every time

yp
Автор

You keep making bankers videos for all of humanity I listen at 1.25 speed

xxxencryptacion
Автор

At 5:55 - explaining while … else. Is it just me or is there a slight glitch in the explanation here? If the program starts with i=2 say, the loop executes as normal but when i hits the final value of 102 at line 11, and control goes back to the while statement, the else is triggered and so you get a “never executes” print, even though the program printed all the squares 2…100.

anthonymurphy
Автор

Great videos! I have been following along, with same outcome as in the videos, but this last one has me baffled. When I run the test for prime numbers, the second time, after changing 100 to 10000, my results are all even. Any ideas? the only thing I changed was the 100 to 10000

JehovaJirehEsMiDios
Автор

Hi Andy, first time learner here. Wondering if perhaps something went wrong with my set up, for the while loop example, when I run it, I do not see any type of output, however code is running, its only when I try to cancel that a few moment later it is printed. No issues when running it in the terminal though. Up until that part every exercise you did, I had the same results.

omasood
Автор

Hi Andy! I’ve a question. During 2nd example of ‘While true, break, continue’, when I run the code it gives problem message that ‘break and continue’ can only be used with loops, even though it is a loop. I even tried using the same code as yours but had the same error.

bilalsheikh
Автор

please put a playlist on this phyton video tutorials

edtardaguila
Автор

Every time I press run code, it still shows the results of previous runs at the output, how can I not display it anymore?

yeuduongtamhuong