Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- answer = 'Python'
- user_input = input('What language do we learn? ')
- user_input == answer
- while True:
- if True:
- print('Nice')
- break
- else:
- print('Try more')
- break
- while True:
- users_input = input('Please, input positive number: ')
- if float(users_input) > 0:
- print('Your number is: %s')
- break
- else:
- print('is a wrong number.')
- continue
- def main():
- answer = 'Python'
- while True:
- user_input = str(input('What language do we learn?n'))
- if user_input.lower() == answer.lower():
- print('Nicen')
- break
- else:
- print('Try moren')
- continue
- if __name__ == '__main__':
- main()
Add Comment
Please, Sign In to add comment