Is it compulsory to insert all the curly brackets in a piece of code. And why. And when | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it compulsory to insert all the curly brackets in a piece of code. And why. And when

25th Dec 2017, 9:36 PM
James
James - avatar
2 Answers
+ 5
With curly brackets and think that is code more readable...
25th Dec 2017, 9:48 PM
Vukan
Vukan - avatar
+ 4
Codes have to be converted to 0 and 1's for the computer to understand it,curly brackets tell the computer that that is particular block of code.In Python indentation is used.Without these the computer will be messed not knowing what to process or where to start
25th Dec 2017, 9:59 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar