P
P
Python Classroom
K
Comment on page

# Problems

## Problem 1

Write Python code that prints odd numbers from 3 - 15 (inclusive).

## Problem 2

Writing Python code that prints the sum of all even numbers from 2 to 100 (inclusive).

## Problem 3

Write Python code that prints the leap years in the first half of this century (2000 - 2050). Determine if 2020 is a leap year.

## Problem 4

Running on a treadmill, you burn 4.5 calories per minute. Write Python code that displays the number of calories burned after 10, 15, 20, 25 and 30 minutes.

## Problem 5

Write Python that code that converts Fahrenheit to Celsius for the following values of Fahrenheit: 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0.
Use the following formula:
$Celsius=\frac{5}{9} (Fahrenheit-32)$

## Problem 6

The Voyager 1 space probe was launched by NASA in 1977. It is still operating and is the most distant man-made object from Earth. The probe is traveling at 38,610 mph. (do not use commas when multiplying numbers) Calculate how many miles the probe has traveled every 10 years from 1977 to 2017.