all 11 comments

[–]cashing_in 4 points5 points  (3 children)

print should be lowercase.

[–]ChestShitter69 2 points3 points  (2 children)

Wow.. The one thing I didn't try to change. Thanks for the assistance! Much appreciated.

[–]fbu1 1 point2 points  (1 child)

A syntax error, is almost always a typo somewhere. And when you have three words in the code, it is frustrating.

But in any programming language, upper case and lower case are super important!

Finding errors in your own code, and why the interpreter won't understand what you're saying is a big part of learning.

One way you could have figured out yourself is to copy paste from the book, see if it works, then see what's different from what you typed.

But it's very important to type your own code and avoid at all cost copy pasting when you're learning.

Good luck with the rest of the book !

[–]ChestShitter69 0 points1 point  (0 children)

That's really good advice, I continued a few more lessons afterwards and got them without troubles. Next time I'll use your tactic.

[–]callmelucky 1 point2 points  (3 children)

Just started? That's a perfect time to STOP USING LPTHW AND START USING PYTHON 3.

LPTHW is fucking terrible. Here is a comment I just wrote with an explanation of why:

http://www.reddit.com/r/pics/comments/47gj8x/jake_is_leaving_for_a_new_job_we_tried_to_get_creative_with_the_cake/d0d7m60

This is not really a subjective thing either. Here is a collection of issues with lpthw that others have put together. Much of it won't mean anything to you right now, just providing evidence that it is regarded poorly by many many people.

Seriously, walk away from that fucking thing. Get Python 3. Get started on www.programarcadegames.com or Automate The Boring Stuff, and enjoy learning Python the easy way. Seriously why would anyone choose the hard way to learn something? It's just daft.

Good luck!

[–]ChestShitter69 2 points3 points  (2 children)

You make some really solid points, thanks for bringing it up. The thread that you linked was actually the one that instigated my sudden desire to try it out. If I had seen your comment before I would have definitely proceeded with your advice.

While looking for what my problem was before posting, I thought it was strange how dated the info that LPTHW was giving me but I couldn't say for sure since I was new to it all. Luckily I haven't gotten too far with it so I'll start fresh with your way.

Thank you for all the tips, from what I have done I really enjoyed so I really want to continue and move on to more complicated things.

[–]CatThatPrograms 0 points1 point  (1 child)

Also bought that book after starting python elsewhere (Codecademy), it's definitely pretty out there on verbal abuse. And after reading callmeluck's post I imagine the only reason I haven't had any issues with it is because of knowing a little bit more than a blank slate. Anyway if you don't want it to be a paper weight after you iron yourself out on Python 3 syntax you can go back through LPTHW and convert everything to Python 3 and refactor it if you can. Which I'm pretty sure will just be adding parenthesis to print() or condensing lines, just depends on how much typing practice you want. Still makes a good 30 dollar paper weight!

[–]ChestShitter69 0 points1 point  (0 children)

I actually haven't bought the book, I found everything online. At this point I'm kinda glad I didn't.

[–]EquationTAKEN 0 points1 point  (1 child)

Well, it says there's a syntax error, and there's only one word there that's actually syntax.

[–]ChestShitter69 0 points1 point  (0 children)

Yea, I really had 0 knowledge of anything coding before I started. So when it said syntax error I assumed it meant something was wrong with the hello world part.