0

What is the difference if i didn't make space like that print(2*3) not print(2 * 3)

What is the difference if i didn't make space like that print(2*3) not print(2 * 3)

20th May 2022, 11:53 PM
Ahmed Mohamed
2 Answers
+ 2
Ahmed Mohamed No difference just readability of code matters. Compiler will ignore that space and will give same result.
21st May 2022, 1:22 AM
A͢J
A͢J - avatar
+ 2
There is no practical difference. Both statements give same result, only outlook differs. Smart usage of the space can increase readability of a code. For example I consider this: print(5*8 + 6*7 + 3*5) much more readable than this: print(5*8+6*7+3*5)
21st May 2022, 12:45 AM
Seb TheS
Seb TheS - avatar