I need a lesson.
Moshe Zadka
moshez at math.huji.ac.il
Thu Jun 8 04:12:28 EDT 2000
On Wed, 7 Jun 2000, F. G. Brown wrote:
> a = input("What is the distance you traveled in miles? ")
> b = input("How many seconds did it require? ")
> c = a*3600.00/b
> print "You were going %d mph!" %c
> if c > 75:
> print "Hey you better slow down!"
> d = raw_input ("Would you like to do another? (y)es or (n)o")
> if d == 'y':
> print 'Here we go!'
> else:
> print 'See ya!'
more = 1
while more:
....input.....calculations...etc
d = raw_input("Would you like another? (y) (n)")
more = (d=='y')
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com
More information about the Python-list
mailing list