+ 2

Why print("hello") and print((("hello"))) are The SAME? [Is there No Difference?]

13th Apr 2019, 8:39 AM
Jaspe Micael
2 ответов
+ 3
Unless a function is involved, parentheses are used to make code more readable.meaning they have no special interpretation So print("Hello") and print((((("Hello "))))) are both interpreted as plain print("Hello")
13th Apr 2019, 8:43 AM
Dlite
Dlite - avatar
+ 3
In this particular case I would say the parentheses make the code more unreadable and has no effect.
13th Apr 2019, 1:43 PM
Sonic
Sonic - avatar