0

how do I check if a string contains special characters(# ₹ @)

31st Aug 2016, 4:38 PM
ujjval kapoor
ujjval kapoor - avatar
2 Réponses
0
try something like if '#' in my_string:
31st Aug 2016, 8:53 PM
Demeth
Demeth - avatar
0
you can use string.punctuation if string in string.punctuation:
1st Sep 2016, 5:24 AM
Sathish Kumar
Sathish Kumar - avatar