Generation

generate functionTue, 13 Dec 2022

Write a function that checks if the word "password" is in a string (any part of it)

def check_password(string): if "password" in string: return True else: return False check_password("asdfasdfpasswordasdfasdf")

Questions about programming?Chat with your personal AI assistant