python loops
#x starts at 1 and goes up to 80 @ intervals of 2
for x in range(1, 80, 2):
print(x)
python loops
#x starts at 1 and goes up to 80 @ intervals of 2
for x in range(1, 80, 2):
print(x)
for loop python
for x in range(6)
print(x)
#Result: 0 1 2 3 4 5
for loop python
Python Loops
for x in range(1, 80, 2):
print(x)
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)
for x in range(1, 80, 2):
print(x)
for loop in python
# python
n=[10,1,20,1,5,56]
for i in n:
print(i)
output:
10
1
20
1
5
56
python for loop
for x in range(10):
print(x)
// output: 1,2,3,...,10
for x in range(10, 20, 2):
print(x)
// output: 10, 12, 14, 16, 18, 20
list = [2, 3, "el"]
for x in list:
print(x)
// output: 2, 3, "el"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us