Question: Codio Project File Edit Find View Tools Education exercise... Conditionals Coding Exercises: Condi _ Exercise 4 Conditionals Exercise 4 Problem Use the variable x as

Codio
Project
File
Edit
Find
View
Tools
Education
exercise...
Conditionals Coding Exercises: Condi_
Exercise 4
Conditionals Exercise 4
Problem
Use the variable x as you write this program. x will represent a string. Write a program that determines if x is a primary color (red, blue, or yellow). If yes, print _ is a primary color, where the blank ()()) is the value of x. If no, print _ is not a primary color. where the blank ) is the value of . For this particular exercise, make sure that your code specifically checks if the variable is equivalent to the strings blue or in all lowercase. Otherwise, your test cases will fail.
IMPORTANT
There is a difference between all of the following strings: "red", "Red", and "RED". When comparing strings, the system is case-sensitive and will attempt to match each character of the strings to each other based on whether it is uppercase or lowercase.
Expected Output
If x is , then the output would be: q, color.
If primary color. teal is not a pr
Click to compile your code
Test your code with a few different values
Conditionals Exercise 4
When your code is ready, click the button below to submit your work for grading.
Codio Project File Edit Find View Tools Education

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!