-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4)Condition_Program.py
More file actions
38 lines (23 loc) · 872 Bytes
/
4)Condition_Program.py
File metadata and controls
38 lines (23 loc) · 872 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
33
34
35
36
37
day_of_week = input("Enter the day of the week: ").lower() #convert input into lowercase
print(day_of_week)
if day_of_week == "Saturday" or day_of_week == "Sunday":
print("I will learn live DevOps")
else:
print("I will practise devops")
num1 = int(input("Enter the First number: "))
print(num1)
num2 = int(input("Enter the Second number: "))
print(num2)
choice = input("Enter the operation: ( options +,-,*,/,% ) ")
if choice == "+":
print("Addition of two numbers is: ",num1+num2)
elif choice == "-":
print("Subtraction of two number is: ",num1 - num2)
elif choice == "*":
print("Multiplication of two number is: ", num1 * num2)
elif choice == "/":
print("Division of two numbers is: ", num1/num2)
elif choice == "%":
print("Modulous of two number is: ", num1%num2)
else:
print("Invalid choice")