Beginner Python Programming with examples (2022)

Python is a high-level, general-purpose programming language. Beginner python programming it’s very easy and suitable language and also for experienced programmers compare to other programming languages like C++ and Java.

Python is a very popular programming language used in web development, Machine Learning programming application,along with all cutting edge technology in Software Industry.

What is a Variable in Python?

Data or values can be stored in temporary storage spaces called variables.

How do I store data?

Example:- “John” “123” “xyz”

What is a Variable in Python?

What are the data types in Python?

In python programming every variable is associated with a data type.

What are the different types of data in Python?

What are the 4 data types in Python
Data TypesExplanationExamples 
StringsText – anything between
” ”  becomes string
“Hello!”, “23.34” 
IntegersWhole numbers5364 
FloatsDecimal Numbers3.1415 
BooleansTruth values represent Yes/NoTrue, False 
ListsA collection of data,
sits between  [ ]  
[1,2,3,4,5] 
TuplesA collection of data,
sits between  ( )  
(1,2,3,4,5) 
DictionariesA collection of data, 
sits between  { }  
{“a”:1, “b”:2, “c”:3} 
Practical example for Beginner Python…
Beginner Python
Beginner Python
Beginner Python

What are operators in Python?

Operators in python are special symbols in Python that carry out arithmetic or logical and relational computation.

  • Arithmetic Operators
  • Logical Operators
  • Relation Operator

What is Arithmetic Operators?

Arithmetic operators are using mathematical operations like subtraction, addition, multiplication, etc.

OperatorNameExample
+Additionx + y
Subtractionx – y
*Multiplicationx * y
/Divisionx / y
%Modulusx % y
**Exponentiationx ** y
//Floor divisionx // y
Beginner Python Practical Example:-
What is Arithmetic Operators

What is Logical Operators?

Logical operators are using for combine conditional statements.

OperatorNameExample
==Equalx == y
!=Not equalx != y
Greater thanx > y
Less thanx < y
>=Greater than or equal tox >= y
<=Less than or equal tox <= y

Beginner Python Practical Example:-

hat is Logical Operators

What is Relation Operator ?

Comparison operators are using for compare two values.

OperatorNameExample
==Equalx == y
!=Not equalx != y
Greater thanx > y
Less thanx < y
>=Greater than or equal tox >= y
<=Less than or equal tox <= y

Beginner Python Practical Example:-

5/5 - (1 vote)
Sharing Is Caring:

Leave a Comment