Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created September 16, 2020 19:58
Show Gist options
  • Select an option

  • Save calthoff/379e31a5cb7fbbc39e14fa1053d6e7dd to your computer and use it in GitHub Desktop.

Select an option

Save calthoff/379e31a5cb7fbbc39e14fa1053d6e7dd to your computer and use it in GitHub Desktop.
x = 10
while x >= 0:
print(x)
x -= 1
@AymenKhi
Copy link
Copy Markdown

AymenKhi commented Feb 6, 2021

#Alternative Solution
i=0
while i in range(0,11):
print(10-i)
i += 1

@evarghhh
Copy link
Copy Markdown

evarghhh commented Jul 6, 2021

i=10
while 0<=i<=10:
print(i)
i-=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment