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())

User Iskar Jarak
by
3.3k points