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

python add 1 to count

June 23, 2022 by Anurag batra
count = 0
count += 1
print(count)

Here is what the above code is Doing:
1. We create a variable called count and set it equal to 0.
2. We add 1 to count.
3. We print the value of count.

The output of the above code is 1.

Categories Python Examples
Post navigation
Validate IP Address
python print how long it takes to run
© MyEduKit - 2022 . All Rights Reserved.