Last active
September 3, 2021 16:21
-
-
Save ppeuchin/d4843c03b26217b6f07d458b57504431 to your computer and use it in GitHub Desktop.
Revisions
-
ppeuchin revised this gist
Sep 3, 2021 . No changes.There are no files selected for viewing
-
ppeuchin revised this gist
Sep 3, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # The program then displays all the values except 0 from the smallest to the largest, with each integer appearing on different lines. nums_list = [] while True: num = int(input("Enter an integer: ") -
ppeuchin created this gist
Sep 3, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ nums_list = [] while True: num = int(input("Enter an integer: ") if num == 0: break else: nums_list.append(num) nums_list.sort() print("\nResults:\n") for i in nums_list: print(" ",i)