tgghaus.com
tgghaus.com
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 Combat PA Forums
 General Chit Chat
 anyone know how to program in python?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andrid
Wordy Bastard

692 Posts

Posted - 03/27/2003 :  20:55:04  Show Profile  Reply with Quote
if you do can you help me with this program... it's supposed to average some numbers... thanks for your time

x="first"
sum=0.0
g=0
while x=!"end":
x=input("what are the numbers? type end when done")
b=float(x)
sum=sum+b
g=g+1
def avg(sum,g):return sum/g
print avg(sum,g)
b=input("type anything to end")

Impact4ever
Wordy Bastard

664 Posts

Posted - 04/01/2003 :  21:19:16  Show Profile  Send Impact4ever a Yahoo! Message  Reply with Quote
Nope! not me

"Just because your a genius doesn't make you a smart guy"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
tgghaus.com © 2009 Integral Corporation Go To Top Of Page
Snitz Forums 2000