how to do a for in python code example
Example 1: 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)
Example 2: what is python used for
Python is a multipurpose language. Here are a few examples:
- Building softwares
- Talking to embedded electroncis
- Webscrapping
- Building websites
- Data science
- Artificial intelligence training
- Much more.
It is an easy to learn, easy to read, open-source development language.