subject

Write a function called is_even that takes one parameter and returns a boolean value. It should return True if the argument is even; it should return False otherwise. The is_even function should not print anything out or return a number. It should only take in a number and return a boolean.

Note: Be sure to include comments for all functions that you use or create.

For example, if you made a call like

is_even_number = is_even(4)
is_even_number should have the value True.

Once you’ve written this function, write a program that asks the user for integers and prints whether the number they entered is even or odd using your is_even function. You should let the user keep entering numbers until they enter the SENTINEL value.

Here is a sample run of the program:

Enter a number: 5
Odd
Enter a number 42
Even
Enter a number: -6
Even
Enter a number: 0
Done!

My code isn't working please help.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:20
What’s resistance in an electrical circuit ?
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. centurion: a commander in the army of ancient rome. keyword: picture:
Answers: 2
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
You know the right answer?
Write a function called is_even that takes one parameter and returns a boolean value. It should retu...
Questions
question
Mathematics, 03.11.2020 01:30
question
Social Studies, 03.11.2020 01:30
question
Mathematics, 03.11.2020 01:30
question
Mathematics, 03.11.2020 01:30
question
History, 03.11.2020 01:30
question
History, 03.11.2020 01:30
Questions on the website: 13722360