Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help me this code
#2
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
Reply


Messages In This Thread
help me this code - by tahseen - Sep-09-2017, 03:36 PM
RE: help me this code - by ichabod801 - Sep-09-2017, 04:42 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020