Question: Task 13 (15 points) Write a Python program to count the number of lines in a text file. Task 14 (15 points) Write a Python
- Task 13 (15 points)
- Write a Python program to count the number of lines in a text file.
- Task 14 (15 points)
- Write a Python program to convert temperatures to and from Celsius and Fahrenheit [Formula : c/5 = f-32/9 [where c = temperature in Celsius and f = temperature in Fahrenheit]
- Task 15 (15 points)
- Write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item.
- For example, given the following list: mylist : ['ford','chevy''honda''dodge']
- The function would return: 'ford, chevy,honda,and dodge'
- Write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
