DEV Community

Cover image for Getting Started With Python
Simbo Asante Ntiro
Simbo Asante Ntiro

Posted on

Getting Started With Python

Introduction:


Python is a general purpose, high level, interpreted language with easy syntax. It was developed in 1989 by Guido Van Rossum, it is named after the British comedy group Monty Python (I'm also a big fan of their movies and sketches). In the past decade Python has seen an exponential increase in its popularity among developers.

Why is Python so popular?

The biggest reason is its easy-to-learn syntax. Python also boasts a great number of use cases including but not limited to:

  • AI and Machine Learning

  • Web Development

  • Data Visualization

  • Game Development

  • Data Analytics

  • Financial-Technology

  • Cyber Security

  • Automation

  • Testing

Getting Started

  1. Download the latest version of Python for your operating system here. You can also read more about setting up a python development here

  2. Create a new folder where you will be saving you python files, let say FirstApp.

  3. Open your text-editor, then navigate to the folder you created (FirstApp).

  4. Create a new file called app.py then enter the following code into the file:

print("Hello, World!")

  1. Save the file.

That was easy! Now for the REAL magic.

Using Command Prompt on Windows or Terminal on UNIX (macOS or Linux) Navigate to the FirstApp folder and type the following command

Python3 app.py
Enter fullscreen mode Exit fullscreen mode

If everything went according to plan, you'll see the following message on screen:

Hello, World!
Enter fullscreen mode Exit fullscreen mode

There you go! You just wrote your first program in Python!
I hope you can learn more soon!

Top comments (1)

Collapse
 
prof_bkmurage profile image
profbkmurage

cool work here