Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Simple Python Programs-2-Circumference of Circle Finder

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,157
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 13, 2009

How to make a circumference of circle finder in python. Code:print "****Circumference**Of**Circle**Finder****"
print "For Diameter, Press 1. For Radius Press 2."
while 1: x = raw_input("1 or 2: ") if x == "1": D = input("Diameter: ") C = D*3.14 print C print "_____________________________________________________" elif x == "2": R = input("Radius: ") C = R*2*3.14 print C print "_____________________________________________________"

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • ey can you actually run the program so we can see how its done

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • thanks your a life savior hahaha

  • you dont have to use elif, there are only two options: option 1 and option 2

    If you chose option 1 then you know the other one left is option 2...

    Just use an "IF" and an "ELSE"

  • great video plz make more

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more