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, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
question
Computers and Technology, 25.06.2019 00:30
What is a typeface? a. a collection of similar text b. a collection of similar fonts c. a collection of similar designs d. a collection of similar colors e. a collection of similar images
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, 20.11.2020 21:50
question
Mathematics, 20.11.2020 21:50
question
Mathematics, 20.11.2020 21:50
question
Mathematics, 20.11.2020 21:50
question
Mathematics, 20.11.2020 21:50
Questions on the website: 13722363