LESSON PLAN:
1) for loop syntax
2) differences between the for loop and the while loop
3) range function
4) enumerate function
LINKS:
Python course on Stepik:
https://stepik.org/course/253447
Telegram:
https://t.me/ITstudy_Girl
Support the channel:
https://yoomoney.ru/to/4100119445649159
LESSON TASK:
Write a program that displays the results of a marathon race.
We have a list of marathon participants' names:
['Ivan', 'Maria', 'Vladislav', 'Vladimir', 'Dmitry', 'Ekaterina']
The person with the first name on the list, Ivan, won first place, Maria won second place, and so on. We need to display the marathon results in the following format: "Congratulations! Ivan won first place!"
Contents:
00:00 Introduction
00:17 For Loop Syntax
01:23 For Loop Using a String
03:28 For Loop Using a List
04:00 Modifying a List Using for
05:26 The Range Function
08:37 The Enumerate Function
11:48 Conclusion