Question: In Python create a list of 1 5 numbers. You will use a loop to go through your list, and if the number is odd,
In Python create a list of numbers. You will use a loop to go through your list, and if the number is odd, you will print "the number is even" or "the number is odd," where the words the number should be replaced with the number in your list. Example: is odd is even
Hint: to find out if the number is even, your syntax is if number and you cannot print a number and characters in the same print statement without converting the number to a string, ie strnumber
Use proper programming techniques and appropriate documentation of all variables.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
