Check if string contain number/special character|Generate Random String|Python String Problems | Q.2

preview_player
Показать описание
Find answers to Questions - How to check if string contains a number or special characters or both and how to generate random string and number using choice method.
Рекомендации по теме
Комментарии
Автор

Hello sir...can you please tell me how can we check whether a string has both numbers and special characters or not?

naina
Автор

Hello Sir,
How can we generate a random string which have special character also? I googled lot but everywhere random generation of string are alphanumeric only not with special character

tarunpathak