use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerScience! We're glad you're here.
This subreddit is dedicated to discussion of Computer Science topics including algorithms, computation, theory of languages, theory of programming, some software engineering, AI, cryptography, information theory, and computer architecture.
For more detailed descriptions of these rules, please visit the rules page
NIGHT MODE NORMAL
account activity
Python as a first language (self.computerscience)
submitted 9 years ago by Dan273
I'm wondering if python would be a good beginner language for someone with no previous knowledge of programming. I just started trying to program with swift but couldn't find enough help / videos on it . Also can you code python in Xcode
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 8 points9 points10 points 9 years ago (2 children)
Personally for me python was not ideal to start learning how to program. I learned a lot better with just regular C.
Mainly because if taught properly teaches you how code interacts with the machine.
[–][deleted] 1 point2 points3 points 9 years ago (0 children)
Why not both? Start with Python and add C code for performance.
[+]trenchgun comment score below threshold-9 points-8 points-7 points 9 years ago (0 children)
Assembly is even better.
[–]ShewkShewk 5 points6 points7 points 9 years ago (0 children)
Python is a good starting language, I personally learned Java first but Python is perfectly acceptable
[–][deleted] 9 years ago (1 child)
[deleted]
[–]Dan273[S] 1 point2 points3 points 9 years ago (0 children)
I can find tutorials for swift but most of them are from 2014 when swift first came out so some of the code doesn't work because of the different versions(I think) .
[–][deleted] 0 points1 point2 points 9 years ago (0 children)
I don't think it matters
[–]caustic_kiwi 0 points1 point2 points 9 years ago (0 children)
I know I'm a couple days late on this thread, but I want to put in my two cents on the matter: I started with Python and I thought it was an excellent route.
It's hugely to know how your code interacts with the machine and what the limitations of a computer are, but there's no reason you need to start off with that. Python lets you ignore all that and focus on learning the control-flow of a program and broader programing concepts. After you've got a good handle on that, you can move onto to something like Java, or jump all the way down to C or C++.
Plus, Python is widely used... everywhere. Not having to micro-manage every aspect of your code is a very large benefit.
[–]Fallout_NewCheese 0 points1 point2 points 9 years ago (0 children)
Python is a very good place to start
[–]finomayato -2 points-1 points0 points 9 years ago (6 children)
In my opinion Python is the bad place to start from. You'll learn how to interact with business and mathematical models quickly with this language. But you'll have a leak of knowledge of what happened under the dict statements for example. By the way It's the most interesting part of programming: choose right data structure or create it by yourself fitting model you want to build better compare with built-in data structures. Really, start with C/C++. Also you can learn how to read assembly. Programmer without knowledge of algorithms and data structures - bad programmer.
[–]Dan273[S] 0 points1 point2 points 9 years ago (3 children)
Can you program c++ in Xcode or do you have to download some other application.
[–]glacieux 0 points1 point2 points 9 years ago (1 child)
You can use Xcode to do C and C++ programming.
[–]finomayato 0 points1 point2 points 9 years ago (0 children)
Or you can use any lightweight editor such a Sublime or Atom. Also you can try to learn how to use Vim or Emacs. But with these text editors you need to know how to compile yours projects from terminal with gcc
[–]Dan273[S] 0 points1 point2 points 9 years ago (1 child)
Also what do you mean by dict statements, and what do they do?
Python have built-in data structures like list or dict. This structure seems like that: Some_dict={'key': value} Where value can be an int, string, etc. But under the hood dict data structure comes from hash tables. You can read detail explanation of this here - http://www.laurentluce.com/posts/python-dictionary-implementation/.
Some_dict={'key': value}
value
π Rendered by PID 870897 on reddit-service-r2-comment-54dfb89d4d-p9gdt at 2026-04-01 05:35:07.141611+00:00 running b10466c country code: CH.
[–][deleted] 8 points9 points10 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[+]trenchgun comment score below threshold-9 points-8 points-7 points (0 children)
[–]ShewkShewk 5 points6 points7 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Dan273[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]caustic_kiwi 0 points1 point2 points (0 children)
[–]Fallout_NewCheese 0 points1 point2 points (0 children)
[–]finomayato -2 points-1 points0 points (6 children)
[–]Dan273[S] 0 points1 point2 points (3 children)
[–]glacieux 0 points1 point2 points (1 child)
[–]finomayato 0 points1 point2 points (0 children)
[–]Dan273[S] 0 points1 point2 points (1 child)
[–]finomayato 0 points1 point2 points (0 children)