Jump to content

Im really sorry to be wasting your superior coding skills,

 

Im just starting out, and i have been yelling at my laptop for 10 minutes trying to figure out

WHY ON EARTH THIS IS AN INVALID SYNTAX!!!

http://prntscr.com/i8rj0y

 

any help would be appreciated, thanks :)

Hi.

 

Link to comment
https://linustechtips.com/topic/892193-the-most-basic-python-syntax-error/
Share on other sites

Link to post
Share on other sites

x == 0 

not

x = 0

 

 

:)

 

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to post
Share on other sites

Welp, I dunno about Python formatting, just some general code stuff that stays the same between languages.

 

@Crunchy Dragon

Do you know how to fix this?

Want to know which mobo to get?

Spoiler

Choose whatever you need. Any more, you're wasting your money. Any less, and you don't get the features you need.

 

Only you know what you need to do with your computer, so nobody's really qualified to answer this question except for you.

 

chEcK iNsidE sPoilEr fOr a tREat!

Link to post
Share on other sites

On face value it's correct (after the == fix)

But python is indent sensitive so I would check the indenting isn't a mix of spaces and tabs.

If you're interested in a product please download and read the manual first.

Don't forget to tag or quote in your reply if you want me to know you've answered or have another question.

Link to post
Share on other sites

13 minutes ago, bob51zhang said:

Welp, I dunno about Python formatting, just some general code stuff that stays the same between languages.

 

@Crunchy Dragon

Do you know how to fix this?

Your answer looks correct, although I haven't worked with Python for a decade or so. From what I recall, that should work.

Quote or tag me( @Crunchy Dragon) if you want me to see your reply

If a post solved your problem/answered your question, please consider marking it as "solved"

Community Standards // Join Floatplane!

Link to post
Share on other sites

2 minutes ago, pxnguinPr3 said:

Il keep trying, and try stack overflow, thanks for y'alls help.

Once you fix the == error the code should be valid.

My guess is it's related to the app your using. Probably some silly end of line or indent or something that shouldn't be happening.

If you retype the whole page I reckon it would probably work.

 

Point being you gotta stop looking for syntax error.

If you're interested in a product please download and read the manual first.

Don't forget to tag or quote in your reply if you want me to know you've answered or have another question.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×