Your function has one parameter, so you can pass it one argument like as follows.
def get_all_latitude(parameter1): print(parameter1) get_all_latitude('first argument')
Output:first argument
but you are trying to pass it two arguments and getting an error like belowdef get_all_latitude(parameter1): print(parameter1) get_all_latitude('first argument', 'second argument')
Error:Traceback (most recent call last):
File "c:/Users/Dave/Documents/VS Code WorkSpaces/Python Forum/general/forumpost2.py", line 32, in <module>
get_all_latitude('first argument', 'second argument')
TypeError: get_all_latitude() takes 1 positional argument but 2 were given
You should either only be passing one argument or add another parameter to your function like belowdef get_all_latitude(parameter1, parameter2): print(parameter1, parameter2) get_all_latitude('first argument', 'second argument')
Output:first argument second argument