diff --git a/Standard/best-practices/Main.py b/Standard/best-practices/Main.py index 8b13789..6e28bb9 100644 --- a/Standard/best-practices/Main.py +++ b/Standard/best-practices/Main.py @@ -1 +1,16 @@ +# Define a list of numbers +numbers = [5, 10, 15, 20, 25] + +# Initialize a variable to store the sum of numbers +total = 0 + +# Iterate through the list and calculate the sum +for num in numbers: + total += num + +# Calculate the average +average = total / len(numbers) + +# Print the result +print(f"The average of the numbers is: {average}")