Question
1. Your neighborhood park has a circular running track 100 meters across. Write a python program that answers the following questions: How many feet is
1. Your neighborhood park has a circular running track 100 meters across. Write a python program that answers the following questions:
How many feet is one lap around the track? Round your answer to one decimal place.
How many laps - including partial laps - would runners need to complete in order to run a full mile (5,280 feet)? Round your answer to one decimal place.
How many full laps would runners need to complete to run at least one full mile?
2.
Write a program that reads a file called grades.txt in the same directory, and uses two functions (described below) to compute and print out the average grade for each line
you should have a function called toNumbers() that accepts a list of strings and converts each string to a number. Note - toNumbers() should modify the parameter it receives rather than returning a value,
you should have a function called sumlist() that accepts a list of numbers and returns their sum total,
You can expect grades data is formatted like below, but should expect the actual number of grades and lines may vary:
74,85,65,56 97,67,83,96
Output should look like this:
average = n.n average = n.n
(I'm learning python on my own. Can anyone help me to fix these python question?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started