Q:

Accept a list of 5 float numbers as an input from the user

0

Accept a list of 5 float numbers as an input from the user

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

floatNumbers = []
n = int(input("Enter the list size : "))


for i in range(0, n):
    print("Enter number at location", i, ":")
    item = float(input())
    floatNumbers.append(item)
    
print("User List is ", floatNumbers)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now