honryyy honryyy
  • 01-01-2021
  • Computers and Technology
contestada

Write a program that reads an integer and determines and prints whether it is odd or even.

Respuesta :

Cytokine
Cytokine Cytokine
  • 01-01-2021

num = int(input("Enter a number: "))

print(str(num)+" is even" if num % 2 == 0 else str(num)+" is odd")

I wrote my code in python 3.8. Best of luck.

Answer Link

Otras preguntas

At a leather shop, 50 leather jackets were sold in February. The shop keeper at the store wants to encourage the sales team to sell more leather jackets by givi
What is 237 divided by 6
what did buddha see in his revelation
DNA is packaged in the nucleus of the cell in a structure called ________________ in which the DNA coils around proteins called histones many times over. When c
The width of a rectangle is 2 less than its length. If the perimeter of the rectangle is no more than30 centimeters, find the range of possible lengths and widt
Anna baked 3 batches of cookies with c cookies in each batch. She then ate 8 cookies! How many cookies does Anna have left? Write your answer as an expression.
Organisms of the same species are identical to each other. true or false
y/n is the city in bioshock 1+2 in the ocean?
Is a 24, 32 and 40 a obtuse triangle ?
Please someone help give the answer for the following, we need to write an expression for the following