►
Run
#the string website = 'https://www.tutorialkart.com' #check if string ends with suffix #start specified print(website.endswith('com', 8)) #True #both start and end specified print(website.endswith('com', 8, 12)) #False print(website.endswith('us', 15)) #False
Output