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

I need some help with ideas
what did the Human Genome Project produce​
Mr green makes some compost he mixes soil, manure and leaf mould in the ratio 3:1:2 mr greenmakes 72 literes of the compost. How many litres of soil does he use
How did Thomas more’s work help spread humanistic ideas
A cylinder has a height of 3 inches and a diameter of 3 inches. What is the volume of the cylinder?
There is no doubt that the product development stages are very important in creating a successful product. Why do you think working through these stages are im
A bag contains 8 blue marbles, 6 green marbles, 12 yellow marbles and 10 orange marbles. A marble is drawn from at randm of the bag, what is the probibilty that
A cylinder has a height of 3 inches and a diameter of 3 inches. What is the volume of the cylinder?
hola me puedes cotizar el envio a Laredo Texas, gracias
I need to know for my hw