Generation

generate functionWed, 15 Feb 2023

check if a string ends with CATSDOGS* where * is a wildcard

def end_check(s): if s[-8:] == 'CATSDOGS': return True else: return False end_check('CATSDOGS') end_check('CATS')

Want to kickstart your project?Use the new AI Studio to create your code