File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
exercises/09-Max_integer_from_list Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 22
33## 📝 Instrucciones:
44
5- 1 . Escribe un script que encuentre el entero más grande la lista.
5+ 1 . Crea una función llamada ` maxInteger ` .
6+
7+ 2 . Esta función debe tomar una lista como parámetro de entrada y devolver el número máximo encontrado en la lista.
8+
9+ 3 . Deberías usar un bucle 'for' para recorrer la lista.
10+
11+ 4 . Utiliza la función ` print() ` para imprimir lo que devuelve la función al ser llamada.
12+
13+ - Por ** ejemplo** : ` print(myFunction(param)) `
614
7- 2 . Imprime ese número en la consola con al función ` print() ` .
815
916## 💡 Pista:
1017
Original file line number Diff line number Diff line change 22
33## 📝 Instructions:
44
5- 1 . Write a script that finds the biggest integer in the list.
5+ 1 . Create a function named ` maxInteger `
66
7- 2 . Print that number in the console with the ` print() ` function.
7+ 2 . This function should take a list as an input parameter and
8+ return the maximum number found in the list.
9+
10+ 3 . You should use a 'for' loop to iterate through the list.
11+
12+ 4 . Use the ` print() ` function to print what the function returns when it is called.
13+ - For ** example** : ` print(myFunction(param)) `
814
915## 💡 Hint:
1016
You can’t perform that action at this time.
0 commit comments