+ 1

How do you know when to use : and when to use ; ?

2nd Oct 2016, 2:43 AM
Pavel G
Pavel G - avatar
4 ответов
+ 2
I have never used ";" ":" is used when indenting, however.
7th Oct 2016, 2:34 AM
Ian
+ 1
: you use after if and loop statements. Also after derining functions
9th Nov 2016, 8:27 PM
Tomasz Duszynski
0
I have seen : used when there's a block of code to be written below a statement like if x < y : or else: or class tree: it identifies a block of code below them. ; is used in other languages like c after statements of code
31st Jan 2017, 2:13 AM
Ruth Waiganjo
Ruth Waiganjo - avatar
0
good question
6th Jul 2017, 12:42 PM
SUDARSHAN GAWALE