Implement the following: 1) Write a function randFive) with one parameter n. 2) randFive() create five random integers in the range (1, n) inclusive. 3) Five numbers should be stored in a list as the return value. 4) Call the function, randFive with the argument, 100. 5) Print the result of the function call. randFive() can generate any five numbers. Make sure to precisely match the output format below. Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course). Example Output [1,20, 9, 84, 46]
Implement the following: 1) Write a function randFive) with one parameter n. 2) randFive() create five random integers in the range (1, n) inclusive. 3) Five numbers should be stored in a list as the return value. 4) Call the function, randFive with the argument, 100. 5) Print the result of the function call. randFive() can generate any five numbers. Make sure to precisely match the output format below. Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course). Example Output [1,20, 9, 84, 46]
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 16RA
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage