Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- entry = input()
- while(entry != 'q' and entry != 'Q'):
- if(len(entry) != 1):
- print("You must enter only one character!")
- else:
- print(ord(entry))
- entry = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement