Indentation is not showing after :(colon) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Indentation is not showing after :(colon)

Py

15th Sep 2021, 7:13 AM
alweena sabir
3 Answers
+ 1
Please show us your code This may be due to if,elif,else statement right you need to type like this A = 2 if A == 2: print("two") else: print("other number")
15th Sep 2021, 7:50 AM
<★Shaurya Chauhan★>(ACTIVE AGAIN✌😇🙃)
<★Shaurya Chauhan★>(ACTIVE AGAIN✌😇🙃) - avatar
+ 1
Sololearn editor doesn't automatically adds a indentation after a colon(:) In other platforms too, its totally depends on the features of editor. You need to manually add a indent by pressing "tab" in Sololearn
15th Sep 2021, 10:44 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
AKSHAY🇮🇳 thnx a lot
15th Sep 2021, 12:24 PM
alweena sabir