Learn a Language: Python
Learning to code requires a HUGE investment of time and energy. For newcomers it’s also difficult to know where to start because there are so many languages to choose from. Through my Instagram account I’m often asked:
“Which programming language should I learn?”
I wanted to be able to give a better answer than “it depends”, so with this Learn a Language series, I hope to build a resource that’ll help people decide for themselves which language they should invest their time in learning!
With help from other developers across the tech community, each article will give an overview of a popular programming language, from a developer experienced in that language. We’ll look at what each language is good at, what it’s not so good at, and the tools/resources that can help you get started.
In this article, Camille aka @thedataenthusiast gives an introduction to Python!
How long have you been working with Python?
2 years
What made you choose to work with Python?
I attended the ODSC (Open Data Science Conference) event back in 2016. Data science was just a buzzword back then and most people were working on Python (or R and SAS). Python had plenty of resources online that helped me learn.
What sort of things is Python well-suited for? When should someone consider using Python for their project?
Python is a a general-purpose language and can be used for all sorts of different tasks, from simple scripts to full-blown applications.
Over recent years, Python has become a very popular choice for data science and data processing — many companies that were already using Python for general tasks chose to invest in building libraries for Python to handle their data-processing too. There’s now a large number of libraries and tools, and a huge community, that make Python a prevalent choice throughout the field of data science.
Get John Martin’s stories in your inbox
Join Medium for free to get updates from this writer.
There are also frameworks such as Django, Flask and Pyramid that can be used to build web applications in Python, however as a data scientist that’s not in my area of expertise.
If you also know other languages, how does Python compare to these?
I used SAS, MATLAB etc in the past — these are languages designed for specific purposes (data handling, mathematical programming). Python, on the other hand, is an open source OOP (Object-Oriented Programming) language which can be used for any type of programming task. It’s also very easy to read, which makes it more accessible to everyone.
Are there any types of project / task that Python would not be a good choice for?
Python is a general-purpose language that can be used for almost anything. It tends to be less used for building GUI applications (like desktop apps or mobile apps), although this can be done!
What do you particularly like about coding in Python?
It has fantastic documentation, it’s easy to use, and there are plenty of tutorials to help you get started.
What are the things that frustrate you when working with Python? What possible sources of pain or frustration (if any!) should people be aware of before they start learning Python?
If you’re using Python 3.6, make sure that you set your PYTHONPATH right!
What dev tools do you use when working with Python? What other tools are also popular?
For my personal projects I use:
- Sublime Text 3 (text editor)
- iTerm2 (macOS terminal)
- Bitbucket: for version control, storing git repositories
- Source Tree: a desktop app for working with git
- PEP8 style guide: this is a set of coding conventions for Python programming.
At work I use:
- Spyder — an IDE for scientific programming in Python
- Jupyter notebook: a tool for creating documents that contain code, equations and visualisations, as well as text.
- PyCharm: another IDE for Python development. (I use it because it works with the PEP8 style guide, and also has great version control UI built-in)
- Bitbucket: for version control.
Which resources would you recommend for people looking to learn Python?
- The course “Learn Python” on codeacademy
- Google’s Python Class: https://developers.google.com/edu/python/
- “Learning Python” — Book from O’Reilly
- Automate the Boring Stuff with Python
- https://www.learnpython.org/
- Udemy also has lots of courses for anyone looking to learn Python
What are the popular libraries or frameworks that people should also consider learning with Python? What do these libraries / frameworks do?
For data science / data analysis:
- Pandas — data structures and data analysis tools
- NumPy
- matplotlib: a library for generating 2D plots from data
- seaborn: another data visualisation library, which is based on matplotlib
- SciPy: a collection of packages for data science
- nose: a unit testing framework which extends unittest (Python’s built-in testing framework)
- scikit-learn: a library for machine learning, data mining and data analysis
For web development:
- Django — probably the most popular framework for building web apps with Python. It has a lot of features, a huge community and loads of plugins that can be used to build applications quickly.
- Flask — a lightweight framework for building web server apps
- Pyramid — another framework similar to Flask but allows you to scale as your app grows.
I also like to play around with data using:
- Bokeh: an interactive tool for visualising data
- Elasticsearch: a search and analytics engine
Anything else you want to say about Python?
Python is an easy-to-learn language that can be used for all sorts of different things. For data science it is a great choice because there are so many tools and libraries available.
Always remember to be patient and try not to get annoyed if your code doesn’t work — keep going!
Thank you so much Camille! Where can people find you online?
- Instagram: @thedataenthusiast
- Twitter: @camilledreyes
- LinkedIn: https://uk.linkedin.com/in/camille-reyes
Thank you so much for reading! I hope you found this article useful!
If you know Python and have suggestions for other resources that beginners should know about, feel free to leave them in the comments!
Other languages will be coming soon!
You can find me:
Instagram: @martinsoft
Online: https://martinsoft.net
I also co-host @meetupandcode, a regular meet-up in London for devs with any level of experience. Join us!








