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 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
You can achieve this in Python with an if statement Heres the code to ... View full answer
Get step-by-step solutions from verified subject matter experts
