0
Is it compulsory to give a space while assigning value or checking value of a variable?
Example: a=7 and a = 7 .Are they both right? if a==7: and if a == 7: . Are they both right?
3 Réponses
+ 1
It is right eather way.
It is just good practice to insert spaces. It improves redability
+ 3
in most languages the compiler will ignore spaces and returns, so you can put as few or as many as you desire. Just be careful with readability because if your code is all jumbled up itmightbehardtoreadandedit
+ 1
Nice example Kylie Scott