Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Python

Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-2007, 01:17 PM
Timotay Timotay is offline
Newbie
 
Join Date: Oct 2007
Location: England
Posts: 6
Rep Power: 0
Timotay is on a distinguished road
Default my first project

ok, heres my first project, its a calculator that allows you to work out the area or cicumference of a circle, if you could have a look and give any improvemnts! many thanks
PHP Code:
## Tim Johnson, 20, oct##
## please contact me befor you display this on a site ##
choice ""
while choice != "no":
    print (
"Do you want to work out the area or circumference? a/c")
    
texta raw_input ()
    if 
texta == "c" :
        print (
"Do you have the radius or diameter? r/d")
        
cdr raw_input ()
        if 
cdr == "r" :
            
cdrv input ("Please enter your value,")
            print 
cdrv
            
print ("Your circumference is"), [(cdrv*2)*3.14]
        if 
cdr == "d":
            
cddv input ("Please enter your value")
            print 
cddv
            
print (" Your circumference is"), [cddv *3.14]
            print (
" Do you wish to close?")
            
cexit raw_input ()
            if 
cexit == "yes":
                exit ()

        else:
            print (
" Do you wish to close?")
            
textexit raw_input ()
            if 
textexit == "yes":
                exit ()
    if 
texta == "a" :
        print (
" Do you have the radius or diameter? r/d ")
        
adr raw_input ()
        if 
adr == "r" :
            
arav input ("Please enter your value")
            print 
arav
            
print ("Your area is") , [(arav*arav) * 3.14]
            print (
"Do you wish to close?")
            
raexit raw_input ()
            if 
raexit == "yes":
                exit ()

        if 
adr == "d" :
            
adav input (" Please enter your value")
            print 
adav
            
print ("Your area is"), [((adav/2)*(adav/2))*3.14]
            print (
" Do you wish to close?")
            
aexit raw_input ()
            if 
aexit == "yes":
                exit ()

    else:
        print (
"Error do you wish to quit?")
        
eexit raw_input ()
        if 
eexit == " yes":
            exit () 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Ideas Jordan Community Projects 20 10-25-2008 01:43 PM
A cool project idea. AlexanderRybak Community Projects 3 02-11-2008 03:37 AM
java project ideas trolls1234 Java Help 2 09-13-2007 12:11 PM
Contributing to a project Jordan Community Projects 7 09-15-2006 05:43 PM
Community Project! - Recent project gone sour Crane C# Programming 5 09-09-2006 03:13 PM


All times are GMT -5. The time now is 12:51 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads