#!/usr/bin/python3 # Initialiser un tableau vide tableau = [] for i in range(5): chiffre = float(input(f"Entrez le chiffre {i+1} : ")) tableau.append(chiffre) mini = tableau[0] maxi = tableau[0] cumul = 0 for chiffre in tableau: if chiffre < mini: mini = chiffre if chiffre > maxi: maxi = chiffre cumul+= chiffre moyenne = cumul / len(tableau) print("Le tableau est :") for chiffre in tableau: print(chiffre) print(f"Le plus petit élément est : {mini}") print(f"Le plus grand élément est : {maxi}") print(f"La moyenne est : {moyenne}")