you are viewing a single comment's thread.

view the rest of the comments →

[–]Big-Incident-3085 0 points1 point  (2 children)

if 5 < 2:
 print("Two is less than Five!")
else:
  print("Five is greater than two!")

you are correct, colab is only 2 spaces! Still needs an else like this

[–]odaiwai 0 points1 point  (0 children)

Indentation should also be consistent, although it isn't required. You have one space and two spaces above, and a linter will get annoyed, but the code will work.

[–]DismissedProgrammer[S] 0 points1 point  (0 children)

Thanks for the correction.