Answer to Question #292647 in Python for sdw

Question #292647

That's Odd

by CodeChum Admin

Well, that's odd, or is it? It's your job to find out!


Instructions:

  1. Input one integer.
  2. Print out the integer in one line.
  3. Check whether the integer is odd or not. If it is odd, print "Odd".

Input

A line containing an integer

5

Output

The first line contains the inputted integer.

The second line contains a string which is the result.

5
Odd




1
Expert's answer
2022-02-03T08:59:42-0500
number = int(input('Enter number: '))

if number%2 == 0:
    print(f'{number} \nEven')
else:
    print(f'{number} \nOdd')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS