Apr-04-2021, 07:48 PM
(Apr-04-2021, 07:42 PM)bowlofred Wrote: The indentation of line 140 does not pair up with an earlierif
, but instead with thewhile
on line 44.
It is possible for a while loop to have anelse
clause, but not anelif
, so this is an error. Whichif
were you expecting it to based off?
It can be difficult to keep track of such a long block of code with so many loops. I think it would be better if you could break it into parts with different functions rather than one long block. For instance make a function to ask for username/password and validation and return the credentials. Then that section doesn't have to wrap later portions.
Thanks.