Question: I need help in Python. I need to take two integers and calculate whether they're even or odd. Output in the same line. # Exercise

I need help in Python. I need to take two integers and calculate whether they're even or odd. Output in the same line.

I need help in Python. I need to take two integers and

\# Exercise 1.2.1: Truth values for compound English sentences. \# Determine whether the following propositions are true or false: (d,e) x= int(input("Enter a number: ")) \#Get the user's input number, convert it to an integer and place it to the variable x. y= int(input("Enter a number: ")) if (x%2)==0 and (y%2)==0 : print("\{0\} is an even number".format (x)) print("\{0\} is an even number".format (y)) else: print(" {0} is an odd number".format (x)) print(" {0} is an odd number".format (y)) Enter a number: 6 Enter a number: 7 6 is an odd number 7 is an odd number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!