Python Practice Creating and Using Functions in Python Practice Functions That's Odd

Aimane Chouhaibi
Aimane Chouhaibi
190 Points

odd num

I'm trying this challenge but I keep getting a syntax error I'm trying to make out if a number is even or even \odd
value = "is_odd" :
    is is_odd % 2 != 

1 Answer

Steven Parker
Steven Parker
200,540 Points

This workshop is for practicing concepts from other courses. If you haven't already taken a course that teaches creating functions in Python, you might put this workshop aside for now and take the other course first.

Otherwise, you can use the "get hints" button to see an example of function definition syntax. There are some required components that don't appear here, including the main keyword for defining a function.