Question: In pyton please Question 13 (20 points) Write a function named number_luck. The function number_Luck takes two parameters: 1. 2. Lucky, a list of lucky
In pyton please Question 13 (20 points) Write a function named number_luck. The function number_Luck takes two parameters: 1. 2. Lucky, a list of lucky numbers between 2 and 12, inclusive unlucky, a list of unlucky numbers between 2 and 12, inclusive Every number is either lucky, unlucky or boring (neither lucky nor unlucky). The function number Luck should 1. ask the user for a number in the range 2 to 12 (you may assume that the user prov input) print a message echoing the user's number and stating whether it is lucky, unlucky return an integer that is the user's number 2. 3. For example, the following would be correct input and output. >>a_numnumber_luck ([7, 11], [2, 3, 12]) Give me a number from 2 to 12: 7 7 is lucky. You win! >>> print(a_num) 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
