length = input('What would you like the length of the rectangle to be? ')
width = input('What would you like the width of the rectnagle to be? ')
int_len = int(length)
int_wid = int(width)
if 0 <= int_len <= 50 and 0 <= int_wid <= 50:
keepgoing = 'no'
else:
keepgoing = 'yes'
while keepgoing == 'yes':
length_w = input('What would you like the length of the rectangle to be? ')
width_w = input('What would you like the width of the rectnagle to be? ')
int_len_w = int(length_w)
int_wid_w = int(width_w)
if 0 <= int_len_w <= 50 and 0 <= int_wid_w <= 50:
keepgoing = 'no'
else:
keepgoing = 'yes'
Thanks for any help you can provide.

New Topic/Question
Reply



MultiQuote







|