Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: "Invalid Syntax" (I am a new coder)
Post: RE: "Invalid Syntax" (I am a new coder)

(Sep-07-2018, 10:15 PM)snippsat Wrote: What do you use to run your code and OS as python works on all platforms Windows,Linux and Mac. IDLE can often be what people start with. Here image i used bef...
Marius2002 General Coding Help 8 4,852 Sep-08-2018, 06:39 AM
    Thread: "Invalid Syntax" (I am a new coder)
Post: RE: "Invalid Syntax" (I am a new coder)

(Sep-07-2018, 09:39 PM)snippsat Wrote: (Sep-07-2018, 09:17 PM)Marius2002 Wrote: Sorry for the bad presentation of my code but i have actually indented my code, I can't get the indention to show up...
Marius2002 General Coding Help 8 4,852 Sep-07-2018, 09:48 PM
    Thread: "Invalid Syntax" (I am a new coder)
Post: RE: "Invalid Syntax" (I am a new coder)

def merit(a, b, c, d, e, f, m): return ((a * 2000 + b * 1750 + c * 1500 + d * 1250 + e * 1000 + f * 0)/(100 * (a + b + c + d + e + f)) + m) freshman_grades = merit(4, 2, 0, 0, 0, 0, 2.5)There you go!...
Marius2002 General Coding Help 8 4,852 Sep-07-2018, 09:26 PM
    Thread: "Invalid Syntax" (I am a new coder)
Post: RE: "Invalid Syntax" (I am a new coder)

(Sep-07-2018, 09:13 PM)Axel_Erfurt Wrote: you must indent the line after def def merit(a, b, c, d, e, f, m): return ((a * 2000 + b * 1750 + c * 1500 + d * 1250 + e * 1000 + f* 0)/(100 * (...
Marius2002 General Coding Help 8 4,852 Sep-07-2018, 09:17 PM
    Thread: "Invalid Syntax" (I am a new coder)
Post: "Invalid Syntax" (I am a new coder)

I started to learn programming yesterday and today I wanted to make a function about our grade system. Unfortunatley i don't know why i got "SyntaError: invalid syntax" This was my code: def merit(a...
Marius2002 General Coding Help 8 4,852 Sep-07-2018, 09:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020