CodeTestValidate

No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.

Challenge # 7

Find the Largest Number

Objective

Identify the largest number in a list of integers.

Instructions

  • You are given a list of integers called numbers.

  • Find and print the largest number in the list.

  • Do not use the built-in max() function.

Constraints:
Do not use input(). • The list will contain at least one number.
Exemple IO

Input: numbers = [3, 5, 1, 9, 2]

Output: 9

Input: numbers = [10, 25, 8, 6]

Output: 25

Input: numbers = [-5, -1, -9]

Output: -1

Try It Online!

Output:

Validate Your Results

Get your code reviewed and validated to understand what you did right and where you can improve.

Previous challengeCheck PalindromeNext challengeCount Vowels in a String