Created
May 1, 2018 20:51
-
-
Save abdulkadyr0v/c9963acaca0cea4504fd3f60aad243af to your computer and use it in GitHub Desktop.
homework 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#quiz1 | |
answer = input('how old are you? ') | |
if answer == 27: | |
print('good') | |
else: | |
print('bad') | |
#quiz2 | |
question = input('what language you learn? ') | |
if question == 'python': | |
print('yes! you are welcome') | |
else: | |
print('bad choise') | |
#quiz3 | |
while True: | |
question = input('whats your favorit language? ') | |
if question.casefold() == 'python': | |
print('its good choise') | |
break | |
else: | |
print('bad answer') | |
continue | |
#quiz4 | |
side_a = input('enter the side a') | |
side_b = input('enter the side b') | |
answer = int(side_a) * int(side_b) | |
print(answer) | |
#quiz5 | |
number1 = input('write number') | |
number2 = input('write another number') | |
symbol = input('write symbol + or -') | |
if symbol == '+': | |
print(int(a) + int(b)) | |
else: | |
print(int(a) - int(b)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment