Question: Need a python code run the same as the sample. What is your first and last name? Mary Smith Welcome, Mary. This is my first

Need a python code run the same as the sample.
What is your first and last name?
Mary
Smith
Welcome, Mary.
This is my first CSE 174 programming assignment.
Let's play "Guess My Number".
Are you ready to play a game, Mary?
I will think of a number between 1 and 50.
Try to guess it in 5 or fewer tries.
Enter guess #1: 25
Guess lower.
Enter guess #2: 20
Guess lower.
Enter guess #3: 15
Guess higher.
Enter guess #4: 18
Congratulations, Mary.
You got it in 4 guesses.
You are an excellent guesser.
And now, some stars to make you happy!
*****
******
Goodbye! the sample ,
Need a python code run the same as the sample.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Finance Questions!