z7ebbcvcnt z7ebbcvcnt
  • 03-03-2021
  • Computers and Technology
contestada

3.4 lesson practice quiz edhesive

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 08-03-2021

3.4 lesson practice quiz edhesive :

Write a program to check if user inputs "yellow"

Answer:

In Python:

col = input("Enter Color: ")

if col == "yellow":

   print("True")

else:

   print("False")

Explanation:

This prompts the user for color

col = input("Enter Color: ")

This checks if color is yellow

if col == "yellow":

If true, this prints true

   print("True")

If otherwise, this prints false

else:

   print("False")

Answer Link

Otras preguntas

help me please which one is the answer
Please help, picture included! State the domain of the relation. A) {-4, -3, -2, -1, 0, 2, 5, 8} B) {-4, -3, -2, -1, 0} C) {-4, -3, -2, -1} D) {-4, -1, 2, 5,
how does a nuclear power plant produce electricity
what is a whole number
Louis has been trying to work on an English essay for the past hour, but he just can’t seem to produce any worthwhile work. What could Louis do instead to mak
help me please asap!!!!!!!
What is the most valuable gemstone on the planet, in terms of weight in Colubmia?
All of these are found in a command economy EXCEPT A) minimum wage. B) environmental controls. C) ownership of corporate stock. D) government regulation
Why did abraham lincoln hesitate to move against slavery?
What describes a philosophy that supports representative government, human rights, and political equality