typeerror - Why do I keep getting: 'int' object is not callable in Python? -
x = 4 y = 5 = 3(x + y) print(a) i keep trying solve that. i've tried this.
x = input("enter value x:") enter value x:4
y = input("enter value y:") enter value y:5
a = 3 x + y what doing wrong?
i suspect want 3(x + y) acted upon in algebra, multiply result of x + y 3. need use multiplication operator *:
a = 3 * (x + y) python take parentheses after token function call per f(x + y), , since 3 not function, told not "callable" (meaning function, or can treat function).
Comments
Post a Comment