0

Why didnt we put (:) after ValueError?

9th Jul 2016, 12:21 PM
Danilo Rosales
Danilo Rosales - avatar
2 Antworten
+ 1
Bcoz it's a single statement. We use ':' to convey that after this statement, the sequence of statement following with indent belongs to this loop/function/statement
11th Jul 2016, 5:20 PM
Deekshith
0
You can, in what scenario did this not happen?
13th Jul 2016, 4:23 PM
Gershon Fosu
Gershon Fosu - avatar