You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
def not_poor(str1):
|
|
snot = str1.find('not')
|
|
sbad = str1.find('poor')
|
|
|
|
if sbad > snot:
|
|
str1 = str1.replace(str1[snot:(sbad+4)], 'good')
|
|
|
|
return str1
|
|
print(not_poor('The lyrics is not that poor!')) |