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

can somebody write for me a story of 80 words? any random story but it has to contain the FANBOYS coordinating conjunction pls?. thank u i have been requesting
A. 92% B. 29% C. 23% D. 100% Branliest to correct answer explain how you solved please
I have a test due today and i need help ! Look at the list of important events in "Romeo and Juliet" from the beginning up until Act 2 Scene 2. These events are
Do all squares have all right angles?
Pleaseee help with math 6th
Evaluate the expression when x=-5, y=-3, and z=-2 y+z/x
5.5.Recommend just ONE practical strategy on how you think teacherscan support learners to cope with Xenophobia at school, also indicatein the response how this
Question 37 - [2 marks available)A school has 320 girls and 250 boys.The probability that a girl is left-handed is 0.2The probability that a boy is left-handed
how does illiteracy help to increase population growth rate? give reasonsPerfect answer will be marked as brainlist ​ Please I need answer quickly
Help Please, I'll give Brainliest A group of wolves is led by a male wolf and a female wolf. The two wolves lead the hunting and get to eat the captured prey fi