Created
June 18, 2021 15:26
-
-
Save TanjimReza/7aecbfbca74f0c157f69334fe9edf825 to your computer and use it in GitHub Desktop.
This file contains 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 characters
take = True | |
lst = [] | |
while take: | |
a = input("Enter number: ") | |
if a == "STOP": | |
take = False | |
else: | |
print(f"Entered number {a}") | |
lst.append(a) | |
checkList = [] | |
for number in lst: | |
if number not in checkList: | |
checkList.append(number) | |
c = lst.count(number) | |
print(f"{number} - {c} times") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment