num = int(input("enter num "))
if num <=0:
output= abs(num)
print(output)
else:
output =abs(num)
print(output)
TypeError Traceback (most recent call last)
<ipython-input-54-aba2c4ff0eb3> in <module>
3 INPUT: -1 OUTPUT: 1"""
4
----> 5 num = int(input("enter num "))
6
7
TypeError: 'int' object is not callable
int
, therefore overwriting theint
function itself.