subject

Consider the following code: x = int(input("input an integer: ")) if (x > = 0): print("yay! ") else: print("boo! ") it outputs "yay! " if the value is positive and "boo! " if the value is negative. change the condition so that it only outputs "yay! " if the value is non-negative (i. e. zero or positive) and even. x > = 0 and x % 2 == 0 x > = 0 and x % 2 == 1 x > = 0 or x % 2 == 1 x > = 0 or x % 2 == 0.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
What is the next step if your volume does not work on computer
Answers: 2
question
Computers and Technology, 25.06.2019 01:30
The study of how to design software, solve problems such as computer security threats, or come up with better ways of handling data storage
Answers: 1
question
Computers and Technology, 25.06.2019 03:10
Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)
Answers: 1
You know the right answer?
Consider the following code: x = int(input("input an integer: ")) if (x > = 0): print("yay! ")...
Questions
question
Mathematics, 17.01.2021 23:10
question
Mathematics, 17.01.2021 23:10
question
Mathematics, 17.01.2021 23:10
question
Mathematics, 17.01.2021 23:10
question
Biology, 17.01.2021 23:10
question
Mathematics, 17.01.2021 23:10
Questions on the website: 13722363