Program to find the largest item of a list


The following code is meant to find the largest item of a list, but the lines are out of order. The following code is meant to define such a function, but the lines are out of order. In your answer put the line numbers in the correct order and introduce appropriate indentation (indent the line numbers to show how the corresponding lines would be indented in your code). Do not write the entire corrected program in your answer.

1 if number > largest:

2 numbers = [3, 5, 2, 1, 4]

3 print largest

4 largest = number

5 for number in numbers:

6 largest = 0

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Program to find the largest item of a list
Reference No:- TGS0535723

Expected delivery within 24 Hours