if option == 'C':radius = float(raw_input("Enter Radius: ")) area = pi * radius**2print "Working..."sleep(1)print ("Area: %.2f. \n%s" % (area, hint))elif option == 'T':base = float(raw_input("Enter base: "))height = float(raw_input("Enter height: "))area = (0.5)*base*heightprint "Working..."sleep(1)print ("Area: %.2f. \n%s" % (area, hint))
else:print "Error: Could not process. The program will restart."sleep(4.5)
I want the code to restart at the bottom, only if the user types something wrong- underneath 'else.' I don't want it to ask them to restart, but automatically. Thanks!!
Also, please show it, not tell. I need to see it, I'm new to Python.