Skillbox Python jokes - 001

Published: 21 September 2018
on channel: intopython.ru
1,396
36

В проверках домашних заданий очень часто встречается код вида

colors = ['red', 'green', 'yellow', 'blue', 'purple']
for i in range(len(colors)):
print(colors[i])

Но ведь это ужасно! И мы решили снять такой шутливый ролик.

PS. А как правильно спросите вы? а вот так

colors = ['red', 'green', 'yellow', 'blue', 'purple']
for color in colors:
print(color)

Используй силу пайтона, Люк!


Watch video Skillbox Python jokes - 001 online without registration, duration hours minute second in high quality. This video was added by user intopython.ru 21 September 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,396 once and liked it 36 people.