Question:
How to execute python program, $ symbol is a syntax error ?
Aaron
2012-10-14 21:43:11 UTC
I'm just beginning to learn programming and I've started off with Python 3.x
I've got this Hello_World tutorial in front of me but the $ symbol (which I've been informed is necessary to execute the program) gives me a "syntax error".

Is it best to start learning programming with python? What do you think ?
Three answers:
Ben
2012-10-14 21:45:12 UTC
You don't actually type the $. The symbol just means that you're supposed to type the rest of the command in a Unix shell (such as bash).
clemmie
2016-12-12 11:39:35 UTC
A syntax blunders actually means that the compiler won't be able to understand what you're declaring, so it may't do as you ask. If it knows what you're declaring even if the meaning isn't what you meant, then you definitely have a "good judgment blunders." this technique will run yet will both crash (like by technique of dividing by technique of 0 or having access to unlawful memory) or it is going to easily supply incorrect solutions. in case you in simple terms artwork at getting to well known the language then syntax blunders will now not be an issue because those are really undemanding to fix in case you recognize what you're doing. even if, even the perfect application written by technique of the perfect builders continually have some good judgment blunders (commonly referred to as "insects").
Jake
2012-10-14 21:49:02 UTC
Depends on your devotion / usage.



If you're into blender along with some other programs (but mainly blender) then I'd say do it.



If you're into game development then i'd do C++ or C# (C# for indie stuffs, C++ for industry standard)



If you're into general; software development i'd do C or C++; I haven't mentioned C up until now, but I probably should've.. I just don't like C because it's a little outdated compared to C# or C++, but it's good because of all of the documentation on it.



When it comes down to it i'd do Python if you aren't very fast and want to generally learn a programming language, else i'd do C# or C++.





Another alternative is Java. I personally don't like it, but it is similar to C#, along with being easier.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...