a few questions.

Shawn Minisall trekker182 at comcast.net
Wed Oct 31 17:27:20 EDT 2007


1.  whats the best way to round a result to 4 decimal places?

I tried round, but then read that it only works with exponents of 10.

I'm trying to do it on this piece of code.

time = (distance / 4900)

2. What direction would I go in if I'm getting 5 inputs from the user 
and want to make a bar table out of them where a * represents a 100 of 
the total number?

For example,

Store 1: * *

Store 2: *

Store 3: * * *

ect,

I already know I'm going to be expecting to use a for loop (0,4) since 
there are 5 inputs, but how to get from say, 200 to the output of * * 
I'm a little lost.

thx






More information about the Python-list mailing list