How can I count in python please help me
count_up_to=10
Then create a for loop which will print x, as shown below.
for x in range(count_up_to): print(x)
If you would like it to count backwards from 0 , multiply x by -1 shown below:
for x in range(count_up_to): print(x*-1)
Remember to add 1 to the variable count_up_to more than what you would like the console to count up to , as it will count from 0 inclusive.
Here is an example repl if you would like to know more.
How to count in python?
How can I count in python please help me
count_up_to=10
Then create a for loop which will print x, as shown below.
If you would like it to count backwards from 0 , multiply x by -1 shown below:
Remember to add 1 to the variable count_up_to more than what you would like the console to count up to , as it will count from 0 inclusive.
Here is an example repl if you would like to know more.