+ 1

is it possible to use braces to delimit the block of code?

28th Feb 2021, 10:07 AM
kum brian
kum brian - avatar
5 Respuestas
+ 1
No, it is not possible. Why do you want to do that?
28th Feb 2021, 10:24 AM
Théophile
Théophile - avatar
+ 1
just asking because of the knowledge from other languages
28th Feb 2021, 10:28 AM
kum brian
kum brian - avatar
+ 1
thanks anyway
28th Feb 2021, 10:29 AM
kum brian
kum brian - avatar
+ 1
thanks for the help. I've been writing C++ for a while now and decided to take up python
28th Feb 2021, 10:34 AM
kum brian
kum brian - avatar
0
Not all languages use braces to delimit blocks of code. A lot of them rely on keywords (such as 'begin' and 'end', for instance), others like python rely on indentation, etc... It is part of the syntax of the language, and you cannot change it.
28th Feb 2021, 10:32 AM
Théophile
Théophile - avatar