forked from codedlabs/python-cw-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhussainvs.py
More file actions
80 lines (24 loc) · 941 Bytes
/
hussainvs.py
File metadata and controls
80 lines (24 loc) · 941 Bytes
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
31
32
my_name = input("what is your name?")
my_age = input("how old are you")
print("My name is" + my_name + "and i am" + my_age + "years old")
first_number = input("enter random number")
secound_number = input("enter another number")
operation = input("enter the operation")
if operation == "+":
print("first_number + secound_number")
elif operation == "*":
print("first_number secound_number")
elif operation == "-":
print(first_number - secound_number)
elif operation == "/":
print(first_number / secound_number)
else :
print("the operation is not avalid")
bus_capacity = (25)
people_inbus = input("the people in the bus")
people_outbus = input("the people want to enter the bus")
empty_seats = bus_capacity - people_inbus
if empty_seats > people_outbus:
print("the empty seats is " + empty_seats)
elif empty_seats <= people_outbus:
print("there is no empty seats")