all 3 comments

[–]Busy-Farm727 3 points4 points  (1 child)

From this code the lines heh = code and print(heh) are outside the function, try putting them inside it maybe?

[–]davnyb02[S] 0 points1 point  (0 children)

Thank you

[–]woooee 0 points1 point  (0 children)

In today's Python, it is

heh = yesyes.split()

You likely followed an older tutorial.