0
Help me with code please
Can I test if the input contains a specific character in py?
1 Resposta
+ 1
Yeah, by using 'in'.
inp = input()
if 'q' in inp:
print('You used a rare letter there!)
Can I test if the input contains a specific character in py?