# TypeError: f() takes 1 positional argument but 3 were given (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/typeerror-f-takes-1-positional-argument-but-3-were-given-python-3-12-10-windows-11-11041443137c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, typeerror, arguments

def f(a) called f(1,2,3). Also observed: lambda missing arg -> '<lambda>() missing 1 required positional argument: 'b''; f(1,a=2) -> 'f() got multiple values for argument 'a''; keyword-only -> 'f() missing 1 required keyword-only argument: 'a''.
