Please use text:
a = 'wwwwwwww' if a == 'q' or 'w': print('?')
I think you meant
a = 'wwwwwwww' if a == 'q' or a == 'w': print('?')