+ 1

In python statement while loop incrementation of( i++)like( i++<10)

Python

20th May 2020, 5:48 PM
Abhay Kashyap
Abhay Kashyap - avatar
2 Antworten
+ 6
Is your question about: How can we increment a variable like in other languages? If True, you can do this: x = 0 x += 1 # this increments x with value of 1
20th May 2020, 5:52 PM
Lothar
Lothar - avatar
0
In while loop
21st May 2020, 6:10 PM
Abhay Kashyap
Abhay Kashyap - avatar