Question: Put a statement to do the following Assume a variable called userName and already has a value Print a message, Hi Mike!, if the

Put a statement to do the following Assume a variable called userName

Put a statement to do the following Assume a variable called userName and already has a value Print a message, "Hi Mike!", if the variable userName contains the string "Mike". Otherwise, print nothing

Step by Step Solution

3.54 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

You can achieve this in Python with an if statement Heres the code to ... View full answer

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 Programming Questions!