Hi everyone.iv seen some variables with the colon at the end and some without ,im confused please Some one help me . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi everyone.iv seen some variables with the colon at the end and some without ,im confused please Some one help me .

2nd Jun 2019, 2:22 PM
zion joseph
zion joseph - avatar
4 Answers
+ 1
Tnks
2nd Jun 2019, 5:46 PM
zion joseph
zion joseph - avatar
0
Defining a new function, or using an if statement or a while loop will require a colon after them, but declaring a variable doesn't need a colon. I might have misunderstood you, let me know if you meant something else
2nd Jun 2019, 2:26 PM
Mo Hani
Mo Hani - avatar
0
Thanks very much for the reply
2nd Jun 2019, 2:38 PM
zion joseph
zion joseph - avatar
0
zion joseph You can edit your comments. Three dots > Edit.
2nd Jun 2019, 5:16 PM
Diego
Diego - avatar