8 odpowiedzi
+ 2
import re
enc = str(input())
secret = re.findall(r"[a-zA-Z\s]", enc)
secret = secret[::-1]
print(secret)
+ 1
import re
sw=input()
w=re.sub('[^a-zA-Z- ]+','',sw)
print(w[len(w)::-1])
I think the same way...no??
Urs is correct ...
+ 1
You can try this code!!!!!!
https://code.sololearn.com/cWK9NMq89YGi/?ref=app
0
Did you try to solve?
0
Yes
0
Show us your code
0
Plz go with isalpha and isspace methods and apend them to array and again convert it to a string..
There can be many alternatives .......
0
Am just new here, pls can anyone put me through for the first time? I just love to code