dear god PLEASE HELP!?! (python)

[b][red]This message was edited by streak118 at 2006-5-1 0:1:14[/red][/b][hr]ok... Im a tard... somebody, ANYBODY!, please help! tell me what I'm doing wrong? or better yet tell me what to fix and how to? this is a class project. I'm failing this class because Im not grasping programming... and I started with C++ then came to this, HELP!?!

#This program will calculate the time it will take a sound to travel based on #the matter it is traveling through; air, water, or steel.

I'll take a closer look a little later, but for now, one quick lesson in Python. The interpreter does not automatically call any "main" function. All you've done here is define a function named "main" and then everything ends. You need to put a call to main after you define it:

[code]def main(): blah blah blah...

main()[/code]

: ps... I have this indented but it's not showing up on the message board.

You need to use the special formatting tags for this board system, [leftbr]code[rightbr] and [leftbr]/code[rightbr]

thank you so much for your help! unfortunantly the teacher never taught us the __whatever__ codes so if I used them it would look suspicious... lol... here's what I ended up with minus input validations..

[code]#This program will calculate the time it will take a sound to travel based on#the matter it is traveling through; air, water, or steel.