Allen Chen

Generation

code to explanationSun, 02 Apr 2023

def chk_odd(num): if num % 2 == 0: return True else: return False

The function chk_odd takes one argument num and checks if it is an odd number. If yes it returns true and else it returns false

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