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

what is the average of 85,70,60,66,72,63,50
What's the difference between equiangular and equilateral triangle?
What is the unit cost per bottle if a pack of 12 bottles of juice sells for $6?
graph the line whose y intercept is 8 and whose x intercept is_9
How do I solve this?
Two number that multiply to 24 and add up to minus 11
A historian must rely on other social scientists when answering which question? A. who? B. when? C. where? D. why?
Find the pattern and use it to list the next two terms in the sequence. 3, -6, 18, -72, 360, -2,160,___,___.
how can a country's stock exchange help people to save and invest in money
arrange the following numbers in order from greatest to least 7,361; 7,136; 7,613