[Tutor] dang this is hard
Hamma Scott
scott_hamma@yahoo.com
Mon, 19 Aug 2002 13:23:21 -0700 (PDT)
I worked with your code and found
that the indentation was a little off
and I set a variable for the first bit of information
This is my result:
#welcome
print "welcome ryan I just wanted you to have a second
calculator!"
print "here you can ahose from what you would like o
ind the radius of..."
print "Type 1 for a rectangle"
print "type 2 for a circle"
inval = input("Enter 1 or 2:")
if inval == 1:
height = input("please type height here")
width = input ("please type width here")
area = height*width
print "area = %s" % (area)
Hope this helps
--- melvin terry <espo89@msn.com> wrote:
> why wont this work?
>
> #welcome
> print "welcome ryan I just wanted you to have a
> second calculator!"
> print "here you can ahose from what you would like o
> ind the radius of..."
> print "Type 1 for a rectangle"
> print "type 2 for a circle"
> if input == 1:
> heigth = input("please type height here")
> width = input ("please type width here")
> area = height*width
> print "find area"Get more from the Web. FREE
> MSN Explorer download : http://explorer.msn.com
>
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com