Mar-09-2021, 08:45 AM
(Mar-08-2021, 04:04 PM)deanhystad Wrote: You have to un-indent if you are using the IDLE shell.Thank you for your responds. I'm looking into it.
After entering "print('hi')" the next line was indented to the same level. I just hit the backspace key end entered "else:"
Output:>>> if 5 > 3: print('hi') else: print('ho') hi
Your problem is you completed the if statement before entering else. You do not want to see ">>>" because that means you are done with the expression.