0
What's wrong in this code.. I need to print only string not #string but it prints including #
String = " hello my name is selva and I'm working in #Google and my friend's are working in #Amazon and #Flipkart " ans = String. split() for i in ans: if "#" in i: print (i)
2 Respuestas
+ 9
print (i[1:])
+ 1
SelvaKumar How about this one? :-
print(input().replace("#", ""))
# Hope this helps