Skip to content

Instantly share code, notes, and snippets.

@TanjimReza
Created June 18, 2021 15:26
Show Gist options
  • Save TanjimReza/7aecbfbca74f0c157f69334fe9edf825 to your computer and use it in GitHub Desktop.
Save TanjimReza/7aecbfbca74f0c157f69334fe9edf825 to your computer and use it in GitHub Desktop.
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