Challenge: Compute the Average of an Arbitrary Number of Inputs
Write code to receive an arbitrary number of float inputs and compute their average.
We'll cover the following
Write a program to receive an arbitrary number of floats using one input()
statement. Calculate their average and print on the console:
- Input: An arbitrary number of floats.
- Output: The average of inputs to be printed.
Get hands-on with 1200+ tech skills courses.