Python Forum

Full Version: Function Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.