Guest User

Untitled

a guest
Oct 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. answer = 'Python'
  2. user_input = input('What language do we learn? ')
  3. user_input == answer
  4. while True:
  5. if True:
  6. print('Nice')
  7. break
  8. else:
  9. print('Try more')
  10. break
  11.  
  12. while True:
  13. users_input = input('Please, input positive number: ')
  14. if float(users_input) > 0:
  15. print('Your number is: %s')
  16. break
  17. else:
  18. print('is a wrong number.')
  19. continue
  20.  
  21. def main():
  22. answer = 'Python'
  23. while True:
  24. user_input = str(input('What language do we learn?n'))
  25. if user_input.lower() == answer.lower():
  26. print('Nicen')
  27. break
  28. else:
  29. print('Try moren')
  30. continue
  31.  
  32. if __name__ == '__main__':
  33. main()
Add Comment
Please, Sign In to add comment