Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CowID = []
- while True:
- ID = input("What is the cow's ID code?")
- if len(ID) == 3:
- CowID.append(ID)
- break
- else:
- print("Cow ID has been entered wrongly.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement