Мне выдает ошибку в строке нейм вот сам: код

def between_markers(letter , begin , end ) :

if letter.find(begin)==-1:
final= letter[:letter.find(end)]
elif letter.find(end)==-1:
final= letter[letter.find(begin)+len(begin):]
elif letter.find(begin)==-1 and letter.find(end)==-1:
final= letter
elif letter.find(begin)>letter.find(end):
final= ''
else:
final= letter[letter.find(begin)+len(begin):letter.find(end)]

return final

if _name_ == '_main_':
print('Example:')
print(between_markers('What is >apple ', '<'))
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.