Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. def user_input():
  2. print('[1]: ASCII to Binary')
  3. print('[2]: Binary to ASCII')
  4. user_input = input('Please choose [1] or [2]: ')
  5. if user_input == ('1', '[1]'):
  6. #
  7. elif user_input == ('2', '[2]'):
  8. #
  9. else:
  10. print('Please enter a valid input...')
  11. user_input()
  12.  
  13. if user_input == ('1', '[1]'):
  14. pass
  15. elif user_input == ('2', '[2]'):
  16. pass
  17. else:
  18. print('Please enter a valid input...')
  19. user_input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement