The problem with the while loop?

There was such a problem. There are two variables, and extracting value from it want to do so while with the condition that they empty or there are signs of type '/;",.', and so wrote a mistake, and if there are letters or numbers started any team
March 23rd 20 at 19:23
1 answer
March 23rd 20 at 19:25
Solution
import re

my_string = "String"
# here is your code with a loop
if not re.match("^[A-Za-z0-9]*$", my_string):
 # and here your code

Here only the Latin alphabet and numbers.
About where are you, while? - alessandro66 commented on March 23rd 20 at 19:28
@alessandro66,
About where are you, while?

he will write - deja3 commented on March 23rd 20 at 19:31
@deja3, sure? - beulah99 commented on March 23rd 20 at 19:34
@Theresa, it's in his best interest - deja3 commented on March 23rd 20 at 19:37
While there is no problem - Delpha_Beier commented on March 23rd 20 at 19:40

Find more questions by tags Python