asked 151k views
18 votes
Assume that file containing a series of floats is named floats.txt and exists on the computer's disk. Write a complete program that displays all of the numbers in the file. In python please.

1 Answer

7 votes

Answer:

open("floats.txt",'r') as file:

print(file.read())

answered
User Iskar Jarak
by
8.0k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.