For Loop Python Exercises | How To Use For Loop in Python?
Автор: NetworkShip
Загружено: 2021-03-24
Просмотров: 981
Описание:
In this lesson, we will focus on Python For Loops and we will do different For Loop Python Exercises. These exercises will be a beginning step for python for loop advanced.
.
We use Python For Loop basically to iterate over a sequence. In other words, it repeats a job for a given sequence. This sequence can be:
python list
python tuple
python string
python dictionary
python set
.
The usage of Python For Loop is like below:
for value in sequence
body (any action)
For exemple:
numbers = [1, 2, 3]
for x in numbers:
print(x*x)
The output of this python code will be:
1
4
9
Another example on python for loops:
for x in "Aragorn":
print(x)
The output of this code will be:
A
r
a
g
o
r
n
For more examples visit IPCisco.com!
Python For Loop: https://ipcisco.com/lesson/python-for...
Python Full Course: https://ipcisco.com/course/python-pro...
.
.
#pythonforloop #pythonloop #pythonloops #python3 #pythonprogramming #pythoncourse
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: