Page 1 of 1

Write a program to read the rainfall.txt file and then write out a new file called rainfall-fmt.txt. The new file should

Posted: Sun Jul 03, 2022 11:24 am
by answerhappygod
Write a program to read the rainfall.txt file and then write outa new file called rainfall-fmt.txt. The new file should format eachline so that the city is right-justified in a field that is 25characters wide, and the rainfall data should be printed in a fieldthat is 5 characters wide with 1 digit to the right of the decimalpoint.(python)