How can I fix this loop so that it multiplies the two intergers and if user types in 'quit' for either number it stops? if not it keeps going.
def multiply_integers(int1,int2): print int1*int2 int1=float(input('Please enter 1st integer: ')) int2=float(input('Please enter 2nd integer: ')) while True: multiply_integers= int("int1, int2") print int1*int2 if multiply_integers == 'Quit': print '\nThank you for using this program! Bye.' break else: print 'Not quitting'
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor