DEV Community

Cover image for Python - Snake or Programming?
Tina Huynh
Tina Huynh

Posted on • Updated on

Python - Snake or Programming?

Table of Contents

  1. Getting Started
  2. Machine Learning / Deep Learning
  3. Best Textbooks For Python
  4. Free Courses for Python
  5. Best Machine Learning with Python Books
  6. Free Courses for Machine Learning

Python is an object-oriented, high-level programming language. It has become one of the most popular programming languages in the world in the recent years. It's used in everything from machine learning to building websites and software testing.

Python is popular because of it's simple syntax, modules and libraries, and large and active community. It is very versatile and is beginner friendly as well as open source. Career paths include: developer, data analyst, data scientist, ethical hacker, software engineer, cloud architect, etc.

Getting Started

First, you need to download the latest release of Python.

Option 1:

Running Python in Immediate mode

Typing python in the command line will invoke the interpreter in immediate mode, where we can directly type Python code. To exit, type quit() and press enter.



>>> 1 + 1
2
>>> quit()


Enter fullscreen mode Exit fullscreen mode

Option 2:

Running Python in an Integrated Development Environment (IDE)

To run a Python script file, we need to save the file with the .py extension. To run the program in the file, you can type python [filename].py or python3 [filename].py in the command line, depending on your system.



python3 hello_world.py


Enter fullscreen mode Exit fullscreen mode

Congrats! You wrote your first program in Python! Here's some helpful links to dive deeper into Python's syntax:

Some popular IDEs for Python are:

start deep learning

Machine Learning and Deep Learning with Python

If you are interested in getting started with deep learning with Python, there are some pre-requisites you may be interested in knowing:

Best Textbooks for Python

Free Courses for Python

Books for Machine Learning

Free Courses for Machine Learning

Top comments (0)