Python Forum
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function Help
#1
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.
Reply
#2
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020