00:01
In this video, we're going to be creating a program that will print out a color when the user enters two of the three primary colors.
00:14
For example, the user enters red and yellow, then the program will print out much.
00:20
So let's create two different variables.
00:22
We'll call them color 1 and color 2.
00:28
With these two colors, we're going to get user input.
00:38
So input, enter a primary color.
00:49
I'll say red, blue, whoops, blue, and yellow.
00:57
So we can also do the same for this.
01:06
Enter a second.
01:10
So now we're going to come down here and create an if -same.
01:13
So if color one and color two, i'll check for red in blue.
01:32
So say equals blue.
01:41
Oh, that's why i was trying to do a comment, so purple.
01:50
So if color one equals blue and color two equals red, and to print out colors mixed, will equal purple...