1. >>> 2- 2
2. >>> 2 -(2-)
File "<stdin>", line 1
2 -(2-)
^
SyntaxError: invalid syntax
3. >>> (0+1)-9(1/2)
<stdin>:1: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable
Give explanation to these results experimented in python.
in 2, do this 2-(-2)
in 3, do this (0+1)-9*(1/2)
Comments
Leave a comment