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