I'm sorry to ask such a noob question,



If someone could just give me some sites or names of the programs they use for programming, I would really appreciate it. Just the programmes that you guys use daily for programming.
Greetz,
Triton456
I still like VB (although its not the most programmer friendly thing ever).S3th wrote:You should probably start with Python.. Easy to learn.
www.python.org
I believe that is the website.
Code: Select all
File, "example3.py", line 1
>>> spam
^
SyntaxError: invalid syntax
Code: Select all
print bigstr
Code: Select all
print(bigstr)
Code: Select all
Line 9
elif j != " " and j != and j != "\t":
^
SyntaxError: invalid syntax
i don't remember which one this was, would you mind providing me with a link?CodeX wrote:If you are running Python 3 you will find that you need to make small changes to Python 2 code which is probably what you are reading unless explicitly mentioned otherwise, if this is the case I suggest you get python 2.6.4 instead as most introductory material for Python is probably based on 2.
The code Mad Hacker submitted has one incompatibility with Python 3, the print statement needs to be changed to a function:should beCode: Select all
print bigstr
Next up the code has an error in it (wont work with Python 2 or 3):Code: Select all
print(bigstr)
this is because of the "and j != " which you can get rid of. The last problem I can see is that pi isn't in the code snippet so you have to add that yourself, if you don't you will end up getting "NameError: name 'pi' is not defined", so all you have to do is add it to your codeCode: Select all
Line 9 elif j != " " and j != and j != "\t": ^ SyntaxError: invalid syntax