Python ProgrammingPython Programming

How to check if a variable is equal to one string or another string?

x = 'canada'

if x in ['canada', 'japan', 'germany', 'australia']:
    print("Yes")
Output
true