-4

I am new to python and my problem is when I want to make a calculator that calculates the volume of a cube:

>>> print(int ** 3 (input ("Enter the side length: ")))
Enter the side length: 4
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    print(int ** 3 (input ("Enter the side length: ")))
TypeError: 'int' object is not callable
Christian Dean
  • 22,138
  • 7
  • 54
  • 87
A.s
  • 7

1 Answers1

2

The int() function should wrap around the whole input() function, Something like this

print(int(input('Enter the side length:')) ** 3)
nehem
  • 12,775
  • 6
  • 58
  • 84