Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
loop python 1

loop python

April 27, 2022 by Anurag batra
#x starts at 1 and goes up to 80 @ intervals of 2
for x in range(1, 80, 2):
  print(x)

Here is what the above code is Doing:
1. It’s creating a for loop that starts at 1 and goes up to 80.
2. It’s incrementing by 2 each time.
3. It’s printing the value of x each time.

Categories Python Examples
Post navigation
how to take two integers as input in python
python merge pdfs
© MyEduKit - 2022 . All Rights Reserved.