You should make sure your indentation is uniform (always 4 spaces). Starting with if Submit == "yes":
, your lines have one extra space. This will be easier to do if you use a better IDE than IDLE, which will automatically highlight and label problems like this. Some good alternatives are Spyder (which is free), and PyCharm (which is free for students).
solved Expected indent error after def statement