Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

3.4 lesson practice quiz edhesive

Sagot :

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")