0

Error int is not callable

I try to calculate the totals even and odd numbers between 1 and n https://code.sololearn.com/ckMCj8eu9626/?ref=app

31st Dec 2020, 10:14 AM
MasterofBeginning
MasterofBeginning - avatar
2 Answers
+ 3
Check your lines 4, 8 and 11. You are doing sth like this. n(), i() where by n and i are just integers and not functions. If u meant multiplication, then use * operator like n *
31st Dec 2020, 10:22 AM
Kirabo Ibrahim
Kirabo Ibrahim - avatar
31st Dec 2020, 10:39 AM
Roma Butaku
Roma Butaku - avatar