+ 2
I can't able to give spaces between certain str.
#it is solution of symbols challenge with some small mistake. #pls help me to know my mistake. code=input() ch='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' n=' ' for decode in code: for new in ch: if decode==new: n+=decode print(n)
8 odpowiedzi
+ 3
As I said add a space in your ch like this
code=input()
ch=' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
n=' '
for decode in code:
for new in ch:
if decode==new:
n+=decode
print(n)
+ 1
Just add space in your ch string
+ 1
No problem sometimes smallest mastakes can bring the most headache because they know how to hide 😂
+ 1
Ruba Kh ya true😅😂😂
0
sentence = list(input())
string = ''.join(x for x in sentence if x.isalnum() or x.isspace())
print(string)
you can also try my approach
0
Ruba Kh like when I am giving input H@#i R$#uba
It returns HiRuba, instead of Hi Ruba...
That's the problem
0
Ruba Kh I think u didn't understand my question..
0
Ruba Kh I got it✌🏻 thanks a lot😍 I am dealing with this small mistake 😅