Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 0010583

Browse files
committed
Update Simple_calculator.py
Made the neccesary changes
1 parent 5c22945 commit 0010583

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Basic-Scripts/Simple_calculator.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,17 @@ def main():
105105
print()
106106
print(" THIS IS A BASIC USER FRIENDLY CALCULATOR! ")
107107
print()
108+
109+
print("The allowed actions are:")
110+
print(" 1) ADDITION \n 2) SUBTRACTION \n 3) MULTIPLICATION \n 4) DIVISION")
111+
print()
108112
print("You can type a sentence and interact.")
109113
print()
114+
110115
#inputting two numbers at a time using the split function
111116
num_1,num_2 = input("Enter two numbers: ").split()
112-
num1=float(num_1)
113-
num2=float(num_2)
117+
num_1=float(num_1)
118+
num_2=float(num_2)
114119

115120

116121
#printing both the numbers

0 commit comments

Comments
 (0)