Sep-09-2017, 04:42 PM
You just need to move the inputs where you get the parameters under the if/elif blocks where you make the calculations:
if operation == '1': length = int(input('Enter Length: ')) breadth = int(input('Enger Breadth: ')) print('Area =', arec(length, breadth))
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures