0

Error

n=int(input()) tot = (n//2)(n//2+1)/2 print((tot*2-(1-n%2)(n//2))//(n+1)) I get this error: 'int' object is not callable Why?

18th Mar 2020, 3:47 PM
Zohal
Zohal - avatar
4 Respuestas
+ 2
Missing * (multiplication opearator) between. Ex: (n)*(n-1)
18th Mar 2020, 3:56 PM
Jayakrishna 🇮🇳
0
What are you trying to do? I mean what are you calculating here?
18th Mar 2020, 3:54 PM
Ipang
0
Ipang Its hard to explain... Im trying to calculate something without using if statements, its actually pretty easy with if...
18th Mar 2020, 3:56 PM
Zohal
Zohal - avatar
0
Jayakrishna Woah ur right, how could I not see that! thank u
18th Mar 2020, 4:17 PM
Zohal
Zohal - avatar