------------------------------------------------------------------------------
MC logo
Python Assignment 1
[^] Python Home
------------------------------------------------------------------------------

A Distant Thought

Assigned
Due
Jan 11
Jan 23
20 pts

This is a simple project for practice running and submitting a program.

Write a python program which requests a length in inches, represented as a floating point number, and prints out the equivalent length in centimeters. The conversion is simple: multiply the input number by 2.54.

[user@sandbox cs220]$ python asst1.py
Please enter a length in inches: 3.5
3.5 in = 8.89 cm
[user@sandbox cs220]$ python asst1.py
Please enter a length in inches: 42.75
42.75 in = 108.585 cm
[user@sandbox cs220]$ python asst1.py
Please enter a length in inches: 10
10 in = 25.4 cm
[user@sandbox cs220]$

Put your program in a file with an extension .py.

When your program works and looks nice, submit over the web here.

Python Assignment 2>>