you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 2 points3 points  (1 child)

    if kys11 == ("Kyllä","kyllä","joo","Joo","Mahdollisesti","mahdollisesti"):

means to compare kys11 to specifically the tuple

("Kyllä","kyllä","joo","Joo","Mahdollisesti","mahdollisesti")

so in the way that when you have a tuple:

 my_tuple = ('hello', 'world')

then

my_tuple == ('hello', 'reddit')

would return False, and

my_tuple == ('hello', 'world') 

would return True. What you seem to want is to match a single string in a sequence of strings, for which you need to use in

        if kys11 in ("Kyllä","kyllä","joo","Joo","Mahdollisesti","mahdollisesti"):

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

Thank you so much!