'"type object argument after * must be an iterable, not int" When trying to increase x and ycor with turtle

I am using turtle graphics in Python to make a game. I want to use these functions to make the spaceship (represented by a turtle) move left and right:

def moveL():
    newpos = f.xcor() - 20
    f.goto(newpos)
def moveR():
    newpos = f.xcor() + 20
    f.goto(newpos)

(Here, f is the turtle instance, representing a fighter ship.) But I keep getting that error in the title. I tried putting both xcor's into parenthesis and putting "iter" before them, but that didn't fix it. Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source