forked from codedlabs/python-cw-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (26 loc) · 1.05 KB
/
main.py
File metadata and controls
31 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# write your code here
# الجزء الاول
# my_name = input("What is your name?")
# my_age = input("How old are you?")
# print(f"my name is {my_name} and I am {my_age} years old")
# الجزء الثاني
# y = int(input("Type the first number"))
# z = int(input("Type the second number"))
# operation = input("Pick an operator +, -, *, /")
# if operation == "+":
# print(y + z)
# elif operation == "-":
# print(y-z)
# elif operation == "*":
# print(y*z)
# elif operation == "/":
# print(y/z)
# else:
# print("The operation is not valid")
# الجزء الثالث
# num = input("Enter a number from 1 to 12: ")
# noun = input("Enter a noun (plural):")
# name = input("Enter a name:")
# sen = input("Enter any sentence:")
# verb = input("Enter a verb:")
# print(f"The story goes... \n \n It was {num} o'clock when I heard a knock at the door.\n I opened the door and there was a box full of {noun} with a note saying 'From Mr. {name}'.\n Just as I closed the door I heard a scream '{sen}'\n I froze in place and all I could do was {verb}")