0
what does the colon mean??
what does the colon(:) mean in python?
2 Réponses
+ 2
Its used for many things... defining functions, classes, loop, branches (ifs) and collection slicing. I probably missed out a few.
0
The colon tells the computer to expect whitespace on the next n lines where n is the number of lines to be indented. Since python uses whitespace instead of curly brackets, whitespace is used.