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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, ksanchez2100
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, Alexaisokay1
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
image
Computers and Technology, 24.06.2019 08:00, nataliamontirl4230
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
You know the right answer?
Consider the following code: x = int(input("input an integer: ")) if (x > = 0): print("yay! ")...

Questions in other subjects:

Konu
Spanish, 22.10.2020 05:01