Find Largest in List

Beginner

Fun Python Challenge for Kids: Find the Largest Number in a List!

Hello, young coder! ๐Ÿ‘‹

Today, we have a fun mission for you! We need your help to find the largest number in a list. Imagine you're a treasure hunter, and each number in the list is a piece of treasure. Your task is to identify the largest treasure in the pile!

Let's say you have a list of numbers like [1, 3, 2, 5, 4]. Your job is to write a Python function called find_largest_in_list that will return the largest number from the list.

Here are a few examples to help you out:

find_largest_in_list([1, 3, 2, 5, 4]) # should return 5 as it's the largest number in the list
find_largest_in_list([10, 22, 3, 45, 7]) # should return 45 because that's the biggest number!

Remember, your function should return the largest number and not print it or take any input from the user!

Ready to become a code treasure hunter? Let's get coding! ๐Ÿ’ป

Geek
Inputs

Arg 1:

[1,3,2,5,4]
Expected Output
5
Actual Output