0
Why we use colon(:) after if and else not use other symbol.
Phython
3 Antworten
+ 1
Apoorv Bansal Just try to use and see what happens.
Rule is rule you can't change. You have to follow.
0
That's the syntax. You don't have a choice.
0
It used to declare the start of indented block..
colon makes it easier for editors with syntax highlighting (:) they can look for colons to decide when indentation needs to be increased also to make it easier to read.