Python Lesson 06 - Control Flow: Conditions and Loops

preview_player
Показать описание
In this Python lesson, we cover control flows including if statements, for loops, and while loops.
------------------------------------------------------------------
Plug into BitMerge

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

This tutorial is very helpful! Where can I find lesson 7?

WhiteChocolate
Автор

Whooo after watching this ... I prepared to my exam

samiksharana
Автор

You really shouldn't say that for loops use a special function called range - it suggests that you can only use range. It would be far more correct to say that for loops are used with iterators - and you can use range (or xrange in Py 2.7) to create a iterator based on intergers.

And you really introduced the idea of 'for i in len(lst): print lst[i]' - that python is so poor it is not funny :-( You should have introduced 'for i in lst: print i' instead - it is for more pythonic, uses the power of python, prevents the creation of an index where you don't need i.

anthonyflury