Amayae WilliamsPro Student 711 Points
I was successful with running this task in workspaces but received an error when submitting. Am I missing something?
The task was to name a function even_odd with a single argument, a number. Return true if even and false if odd. Again in workspaces it worked. Please help.
def even_odd(num): if num % 2 == 0: print("True") else: print("False")
def even_odd(num): if num % 2 == 0: print("True") else: print("False") even_odd(11)
Jennifer NordellTreehouse Staff
Hi there! You're really close, but it's not quite what the challenge asked for. The challenge asks you to return
False (the boolean values), but you are printing the strings
Here's an example for returning True:
Hope this helps!