Introduction To Python

Jreyes
2 min readNov 1, 2021

--

Python is very easy to learn, easy syntax and readability are some of the reasons why developers are using python more and more and it’s very popular.

We can use python as object-oriented and procedure-oriented language as well. It is open source and has tons of libraries for various implementations. Python is a high-level interpreted language and is being used for writing automation code, testing, and reusability.

Keywords & Identifiers

Keywords are nothing but special names that are already present in python. We can use these keywords for specific functionality while writing a python program.

Following is the list of all the keywords that we have in python:

Value Keywords: True, False, None.
Operator Keywords: and, or, not, in, is.
Control Flow Keywords: if, elif, else.
Iteration Keywords: for, while, break, continue, else.
Structure Keywords: def, class, with, as, pass, lambda.
Returning Keywords: return, yield.
Import Keywords: import, from, as.

Variables & Data Types
Variables are like a memory location where you can store a value. This value, you may or may not change in the future.

Data Types in Python

Numbers
String
List
Dictionary
Set
Tuple

Numbers
Numbers or numerical data type is used for numerical values. We have 4 types of numerical data types.

#integers are used to declare whole numbers.
x = 10
y = 20
#float data types is used to declare decimal point values
x = 10.25
y = 20.342
#complex numbers denote the imaginary values
x = 10 + 15j
#boolean is used to get categorical output
num = x < 5
#the output will be either true or false here.

String
The string data type is used to represent characters or alphabets. You can declare a string using a single ” or double quotes “”.

Let's Pause here and continue next week.

Jump to the next chapter

--

--

Jreyes
Jreyes

Written by Jreyes

I'm a software engineer making his way into the tech industry.

No responses yet