mukund1776
BAN USERdef wildcard(wildcard_string):
list_of_strings = []
for c in wildcard_string:
if not list_of_strings:
if c == '?':
list_of_strings.append('0')
list_of_strings.append('1')
else:
list_of_strings.append(c)
else:
new_list_of_strings = []
for string in list_of_strings:
if c == '?':
new_list_of_strings.append(string + '0')
new_list_of_strings.append(string + '1')
else:
new_list_of_strings.append(string + c)
list_of_strings = new_list_of_strings
return list_of_strings
print wildcard('01?0?')
def checkPalindrome(string):
startindex = 0
endindex = len(string) - 1
isPalindrome = True
while True:
if endindex <= startindex:
break
startchar = string[startindex]
endchar = string[endindex]
if not startchar.isalpha():
startindex += 1
continue
if not endchar.isalpha():
endindex -= 1
continue
if startchar.lower() != endchar.lower():
isPalindrome = False
break
else:
startindex += 1
endindex -= 1
return isPalindrome
print checkPalindrome('A man, a plan, a canal, Panama!')
Repaalexlingram, AT&T Customer service email at ABC TECH SUPPORT
I am Alex and I live in Colorado Springs . I am working as a International human resources manager and I ...
Repchingdelisa, Accountant at ABC TECH SUPPORT
I'm a Creative director in San Diego, USA.I map out future plans and make sure the result and ...
Repgiannanewhart, Cloud Support Associate at ABC TECH SUPPORT
I am Clinical managers, a type of medical and health services manager, and work as managers in both administrative areas ...
RepWilliamDGiles, Cloud Support Associate at ADP
Spent 2001-2006 creating marketing channels for tar worldwide. Was quite successful at building tobacco for farmers. Won several awards for ...
Repharryhamesh, Android Engineer at ADP
I placement officers usually work in colleges and universities. One of My friends taught me about prayers that break curses ...
Repsallieroliphant, Project Leader at Wissen Technology
With years of experience I can guarantee you that our licensed company specializes in furnace maintenance scarborough, air conditioners and ...
Repnyladsomerville, abc
Want to purchase best quality silencer at affordable price manufactured by top most trusted brand Innovative Arms.
Contact Stonefirearms now!
Replimlocica, News reporter at Smitty's Marketplace
Hello, I am a News reporter. Master's Degree in astrology and News reporter and 10 years of experience working ...
Repdelenestanf0, HR Executive at Agilent Technologies
Hi, I am a Clinical social worker. methods of prevention and treatment in providing mental-health/healthcare services, I also have ...
- mukund1776 May 09, 2015