Question: / / Daily XP 1 2 5 0 Exercise Exercise The if statement Before diving into some exercises on the if statement, have another look
Daily XP
Exercise
Exercise
The if statement
Before diving into some exercises on the if statement, have another look at its syntax:
if condition
expr
Remember your vectors with social profile views? Let's look at it from another angle. The medium variable gives information about the social website; the numviews variable denotes the actual number of views that particular medium had on the last day of your recordings. Both variables have been predefined for you.
Instructions
XP
Examine the if statement that prints out "Showing LinkedIn information" if the medium variable equals "LinkedIn".
Code an if statement that prints "You are popular!" to the console if the numviews variable exceeds
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
