TypeError: can only concatenate tuple (not “str”) to tuple Error

Well that is because according to the python doc

Tuples are constructed by the comma operator (not within square brackets), with or without enclosing parentheses, but an empty tuple must have the enclosing parentheses, such as a, b, c or (). A single item tuple must have a trailing comma, such as (d,).

so if you do this to your code it has to work

extra = "Assignments", 

or

extra = ("Assignments",)

Leave a Comment