0
Question about paranthesis
So in the basic concepts for python 3 class, other numerical operations, it had print(1+3)**2. Why is the parathesis not like this: print(1+3)**2)?
5 ответов
+ 4
both are invalid.
In python 3, it is,
print((1+3)**2)
+ 3
Sahiba Kaur
which class? please share a link.
[the class may be on python 2]
+ 2
Sahiba Kaur it will work in python 2 but not in python 3
Python 2:
print (1+3)**2
Python 3:
as suggested by Jan Markus and M Tamim
0
Ah, thanks! So in the class, why did it have print(1+3)**2?