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 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)
python for loop
# Range:
for x in range(5):
print(x) # prints 0,1,2,3,4
# Lists:
letters = ['a', 'b', 'c']
for letter in letters:
print(letter) # prints a, b, c
# Dictionaries:
letters = {'a': 1, 'b': 2, 'c': 3}
for letter, num in letters.items():
print(letter, num) # prints a 1, b 2, c 3
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