Challenge: Working with Comparison Operators
Task
Swipe to start coding
You are given the variables first
, second
, and third
. Using comparison operators, check the following:
- Does
first
have the same value asthird
? Store the result in the variablefirst_comparison
. - Is the product of
first * second
less than the product ofthird * first
? Store the result in the variablesecond_comparison
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2