The Ultimate Python Guide for Beginners in 2020

The Ultimate Python Guide for Beginners in 2020

Python is a popular programming language created by Guido van Rossum who released it in 1991. Due to its rise in popularity, I thought it would be a good idea to write an article about the fundamentals of the language.

Python is a popular programming language created by Guido van Rossum who released it in 1991. Due to its rise in popularity, I thought it would be a good idea to write an article about the fundamentals of the language.

If you’re starting out with Python and wondering why you might choose to learn this language, keep in mind that it is cross-platform, has a simple syntax, and is similar to English. In addition to this, Python is a high-level programming language, so a lot of work is done with a small amount of code.

Sold on Python and excited to progress? Great, let’s dive in.

Getting Started

Create a file called app.py and add the following simple code:

print("Hello Medium")

This is the most simple program — as you can see there is no semicolon.

Python Syntax

Python uses almost no brackets and absolutely no semicolons, but it does use indention. When using a code editor like visual studio code, the indention will be added automatically.

if 1 + 1 == 2:
  print("1 + 1 = 2")

Comments

Commenting in Python is done using a hashtag.

if 1 + 1 == 2:
  print("1 + 1 = 2")

## This is a comment
"""
This is the way how 
to use multi-line
comments
"""

Variables

As in every other programming language, Python has variables. Variables are like containers for numbers, strings, and booleans. Variables are very easy to create as follows:

x = 1
y = 3
z = x * y

A variable can have a short name and has to start with a letter or an underscore, and they are case sensitive.

guide programmin 2020 python tech

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Guide to Python Programming Language

Guide to Python Programming Language

Python Programming: A Beginner’s Guide

Python is an interpreted, high-level, powerful general-purpose programming language. You may ask, Python’s a snake right? and Why is this programming language named after it?

Python Tricks Every Developer Should Know

In this tutorial, you’re going to learn a variety of Python tricks that you can use to write your Python code in a more readable and efficient way like a pro.

How to Remove all Duplicate Files on your Drive via Python

Today you're going to learn how to use Python programming in a way that can ultimately save a lot of space on your drive by removing all the duplicates. We gonna use Python OS remove( ) method to remove the duplicates on our drive. Well, that's simple you just call remove ( ) with a parameter of the name of the file you wanna remove done.

Basic Data Types in Python | Python Web Development For Beginners

In the programming world, Data types play an important role. Each Variable is stored in different data types and responsible for various functions. Python had two different objects, and They are mutable and immutable objects.