Python Tanks - If and Else statements

The "if" statement could have addititonal "else" part. The statements under "else" are executed in cases when the "if" condition was not true.
Now we will use it to choose the direction for each turn.
Look carefully at indentation: "else" is on the same level with "if" while their bodies are shifted 4 spaces right.

Prev
#turn right or left after picking each star #depending on whether there is a wall ahead while look_ahead() != 'out': if look_below() == 'star': pick() if look_ahead() == 'wall': left() else: right() forward() #fix this code to pick everything!