Skip to content Skip to sidebar Skip to footer

Typeerror: Create_purple() Takes 0 Positional Arguments But 2 Were Given

I am brand new to Python programming and trying to make this program work. I have made this program work by using 'if' and 'else' statements only, however, I wanted to make this s

Solution 1:

You are calling create_purple with 2 arguments, yet your definition (def) has 0 arguments.

Simply update the definition:

defcreate_purple(color1,color2):

Post a Comment for "Typeerror: Create_purple() Takes 0 Positional Arguments But 2 Were Given"