Question: 1 . 1 Write a Python function that receives a search string and a list of names as parameters. The function must return all the

1.1Write a Python function that receives a search string and a list of names as parameters. The function must return all the names in the list that contain the search string. The search string must be entered by the user, and ensure that the search is not case sensitive.
(10 Marks)
1.2Write a Python function that simulates a dice game. The game is played with two di. If the sum of the di is either 7 or 11, the player wins. If the sum of the di is 12, the player may roll again, otherwise they lose. Use a random number generator to simulate the dice rolls, and display the game result as shown below:
(10 marks) WINNER!
Dice 1: 1
Dice 2: 6 YOU LOSE!
Dice 1: 4
Dice 2: 6 ROLL AGAIN!
Dice 1: 6
Dice 2: 6
1 . 1 Write a Python function that receives a

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