Explicación de los elementos básicos de python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
283 B

x = 10 #stores 10 in x
while x>0: #if x>0 enters loop
print(x) #prints value of x
x-=1 #substracts 1 to x same as x=x-1
#result: 10,9,8,7,6,5,4,3,2,1