►
Run
#the string website = 'https://www.tutorialkart.com' #check if string ends with suffix print(website.endswith('http')) print(website.endswith('www')) print(website.endswith('com'))
Output