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
while True: | |
number = int(input("Give me a number: ")) | |
mod = number % 2 | |
## extra 1 | |
multiple_of_four = number % 4 | |
if multiple_of_four == 0: | |
print("Your number is multiple of four!") | |
elif mod == 0: | |
print("Your number is odd!") | |
else: |
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
name = input("Give me your name: ") | |
print ("Hi " + name + "!") | |
age = int(input("Give me your age: ")) | |
res = 100 - age | |
year = 2017 + res | |
print("You will turn 100 years in the year " + str(year)) | |
number = int(input("Enter a number: ")) | |
print("Your number is: ") | |
print(10 * str(number)) |
NewerOlder