Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hangi ad mlarla z l r ? My pyhton file.py while True: print ( Enter + for summation ) print ( Enter -
hangi admlarla zlr
My pyhton
file.py
while True:
print Enter for summation"
print Enter fou subtraction"
printEnter for multiplication"
print Enter for division"
print Enter to exit"
choice input Enter your operation choice: strip
if choice. lower :
break
if choice in :
txy :
numberl float input Enter the first number:
number float input Enter the second number:
except ValueError:
print Invalid input. Please enter valid numbers."
continue
if choice :
result number number
elif choice
result number number
elif choice
result number number
elif choice T :
if number :
result number number
else:
print Ehron: Camoty dityde by zero.
continue
print fResult: result
else :
printInvalid operation. Flease enter a valid operation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started