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