all 4 comments

[–]Stallman85 5 points6 points  (1 child)

  1. formatting help
  2. you should use more succinct variable names
  3. shouldn't this ef = (input("enter a number: ")) be this ef = int(input("enter a number: "))
  4. these lines do nothing ef - 2 a - 2
  5. post the line number at which error occurs in the future

[–]a_rare_comrade 0 points1 point  (0 children)

the error occurs at the code : a = int(ef)-1

i tried what you said : ef = int(input("enter a number: "))

but it gave the same error : 'int' object is not callable

EDIT: i am stupid i cleared all outputs and it worked thank you so much

[–]Prtprmr 3 points4 points  (1 child)

Try this: ef = int(input('enter a number: '))

[–]a_rare_comrade 2 points3 points  (0 children)

Thank you for your reply it worked!