This has nothing to do with append . tuple(3, 4) in itself raises this error.
The reason is because, as the error message says, tuple expects an iterative argument. You can make a tuple of the contents of one object by passing this single object to the tuple. You cannot make a tuple of two things by passing them as separate arguments.
Just do (3, 4) to make a tuple, as in the first example. There is no reason not to use this simple syntax to write a tuple.
source share