How to use curly brackets? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to use curly brackets?

I get sometimes confused about how much code and operations should be within these brackets. I would really apreciate some help. Sorry for being such a noob, I'm new to coding and english isn't my first language. Thank you.

29th Apr 2017, 8:33 AM
marty
marty - avatar
2 Answers
+ 7
curly brackets just mean the beginning and the end of any function, loop, conditional, class or module. So in curly brackets you should write as many lines as you want to run under certain conditions/within the certain loop
29th Apr 2017, 8:38 AM
Dinmukhamed Mailibay
Dinmukhamed Mailibay - avatar
0
the {holds your instructions}
29th Apr 2017, 8:37 AM
James
James - avatar