Save Ironman|Coding Problem

Input : S = "I am :IronnorI Ma, i"
Output : YES
Explanation:
Ignore all the symbol and whitespaces S = "IamIronnorIMai".
Now, Check for pallandrome ignoring uppercase and lowercase
english letter.
Input : S = Ab?/Ba 
Output :
YES
def saveIronman (s) : 
#Complete the function
#s = input("Enter a string: ")
only_alpha= ""
for char in s:
if char.isalpha() or char.isdigit():
only_alpha += char
S=only_alpha.lower()
if(S==S[::-1]):
# print("YES")
return True
else:
# print("NO")
return False
#{
# Driver Code Starts
#Initial Template for Python 3
for _ in range(0,int(input())):
s = input()
ans = saveIronman(s)
if(ans == True):
print("YES")
else:
print("NO")
# } Driver Code Ends

--

--

--

Student of Computer Science & Engineering at Moradabad Institute of Technology.

Love podcasts or audiobooks? Learn on the go with our new app.

DEMO Day at Connect Week Amsterdam 2017.

Capture Packets on Your Firewall

Is your team slow? Increasing the number of people may not be the solution

Creating Branches in Git, and going back in time!

Hotwire, ActionText, and Rails 6

Hotwire, Turbo, and Rails logos

IDEX Weekly Update: HL system is operational end-to-end!

Joining Multiple Channels using the Agora Flutter SDK

How to Become a Front-End Web Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akash Kumar

Akash Kumar

Student of Computer Science & Engineering at Moradabad Institute of Technology.

More from Medium

Documenting Patterns is a Designer’s Job

Pencils on a Yellow Background

Customer-Driven Development

The Power of Pre-Onboarding

Don’t ask for a cover letter!