Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tpl = (1, 1, 1, 2, 3, 4, 5, 6, 7, 7, 7, 8, 1)
- value = input()
- counter=0
- for data in tpl:
- if data == int(value):
- counter+=1
- print(str(value)+" appears "+str(counter)+" times in the tuple.")
Advertisement
Add Comment
Please, Sign In to add comment