Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1.  
  2.  
  3. # Write a program that will take a file named Celsius.dat that contains a list of temperatures in Celsius (one per line), and will create a file Fahrenheit.dat that contains the same temperatures (one per line, in the same order) in Fahrenheit.
  4.  
  5. c_file = open("Celsius.dat","w+")
  6. f_file = open("Fahrenheit.dat","w+")
  7.  
  8. c_read = c_file.read()
  9. print(c_read)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement