Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-07 Thread Luke Pettit
def main (): Celsius = float (input ("What is the Celsius temperature? ")) Fahrenheit = 9.0 / 5.0 * Celsius + 32 print("The temperature is ", Fahrenheit, " degrees Fahrenheit.") main() You need to check your capitalisation on all the basic things for a start # def main() Def? # then you call it w

Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-07 Thread James Griffin
!-- On Fri 6.Sep'13 at 5:27:23 BST, mike johnson (pretor...@hotmail.com), wrote: > can you please help me figure out why this isnt working thanks > # convert.py > # this program is used to convert Celsius temps to Fahrenheit > # By: James Michael Johnson > > Def main (): > Celsius = float (inp

Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread Joel Goldstick
On Fri, Sep 6, 2013 at 12:27 AM, mike johnson wrote: > can you please help me figure out why this isnt working thanks You have tthree problems: > # convert.py > # this program is used to convert Celsius temps to Fahrenheit > # By: James Michael Johnson > > Def main (): The keyword is def, not D

Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread Alan Gauld
On 06/09/13 05:27, mike johnson wrote: can you please help me figure out why this isnt working thanks The fundamental problem is that Python is case sensitive so Def and def are two different words. As are Main and main and Print and print. Also Python cares about spacing. You need to indent y

Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread Prasad, Ramit
Joel Goldstick wrote: > On Fri, Sep 6, 2013 at 12:27 AM, mike johnson wrote: > > can you please help me figure out why this isnt working thanks > > You have tthree problems: > > > # convert.py > > # this program is used to convert Celsius temps to Fahrenheit > > # By: James Michael Johnson > > >