0
code that will count the number ?
#like this but only one while count = 0 while count < 11 : print(count) count = count + 1 else: count = 10 while count > 0 : print(count) count = count - 1
5 Answers
+ 7
You no need for else:
count = 0
while count < 11 :
print(count)
count = count + 1
count = 10
while count > 0 :
print(count)
count = count - 1
+ 6
Not really know what you mean here...
+ 4
don't understand your point?
+ 3
If you mean a code to reverse the number, here is one:
def print_reversed(n):
if n > 0:
print((n % 10), end='')
print_reversed(int(n / 10))
print_reversed(543210)
+ 1
#i wrote it but not so good
count = 0
while count < 11 :
print(count)
count = count + 1
else:
count = 10
while count > 0 :
print(count)
count = count - 1