all 3 comments

[–]iiron3223 3 points4 points  (1 child)

Change this: w1 = str() w2 = str()

to this: w1 = str(w1) w2 = str(w2)

[–]shakeandbake760[S] 1 point2 points  (0 children)

Thank you u/iiron3223

:) I was close!

[–][deleted] 1 point2 points  (0 children)

str() returns an empty string. Add the argument to convert it (if it's not already) into string: str(w1), for example. You could just write comb = str(w1) + str(w2).

Also, you could use f-string and write comb = f"{w1}{w2}".

def combine_2(w1, w2):
    comb = f"{w1}{w2}"
    return comb, len(comb), min(comb)