import os
os.system('cls')
print(' ')
while 1 :
num1 = float(input("Enter first Number : "))
num2 = float(input("Enter Second NUmber : "))
print("...........................")
print( ' press 1 for + \n press 2 for - \n press 3 for * \n press 4 for / ')
choice = int(input("Enter your operetion number "))
print('---------------------------')
if choice == 1 :
print('the answer is : ' , (num1+num2))
elif choice == 2 :
print('the answer is : ' , (num1-num2))
elif choice == 3 :
print('the answer is : ' , (num1*num2))
elif choice == 4 :
if num2 == 0 :
print("Cant devision by 0")
else :
print('the answer is : ' , (num1/num2))
else :
print("invalid operation !")
print(' ')
stop = input("Do you want the calculator again (Y or N) ?")
if stop == 'N' :
break;