►
Run
#the string website = 'https://www.tutorialkart.com/' #prefix prefix = ('http', 'www') #check if string starts with prefix isValid = website.startswith(prefix) print(isValid)
Output