Function Help - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Function Help (/thread-3315.html) |
Function Help - gygy8 - May-13-2017 Can someone write a guide to these questions in English? https://youtu.be/FQw_npHtpXI 1. Write a function that accepts 2 lists of numbers. The function compares the lists and returns a list containing the large numbers. For example, for the lists: [1, 2, 3, 4] and [4, 5, 1, 2] The function returns [4, 5, 3, 4]. 2. Write a function that receives a number. The function constructs a list of 5 numbers in a random way. Each number in the list is between 1 and 10. If the number appears in the list, the function returns another True function that returns False. RE: Function Help - nilamo - May-13-2017 We won't do your homework for you. We won't watch a youtube video and translate it for you (well... most of us probably wouldn't). What we WILL do, is help you if you have any problems. So give it a try, then come back and share your code, your error message, the output you're getting, and the output you're expecting to get. |