Lesson#13
Control structures are the building blocks that define how a Python program executes. They allow you to control the flow of your program’s logic by making decisions and repeating code blocks.
Lesson#10
Variables can store different types of data in Python.
Python has following data types:
Numeric : int, float, complex
Text : str
Boolean : bool
Lesson#8
Values are assigned to variables using assignment operator ( = ).
Typical examples of assignment statement are:
x = 100y = "Car"
Lesson#12
Arithmetic operators are used to perform common mathematical operations.
Python has the following arithmetic operators:
Addition: +
Lesson#9
Python print function is used to print something (text or values of variables) on screen.
x = 10print("x: ", x)# prints x: 10 on screen
Lesson#14
Conditional execution means that execution of certain statements is based on a condition. If a condition comes true, a set of statements is executed otherwise not.
Lesson#15
Python has very powerful for loop as compared to other programming languages and comes in different flavors. Lets’ discuss them one by one.
Lesson#4
IDE (Integrated Development Environment) is a software application that combines many tools that is used by programmers in single interface. With an IDE code is made efficient and easier.
Lesson#2
When we talk about Python the question arises as “Why Python?” as there are other popular programming languages and platforms available.
Here are some reasons we should use python.
Lesson#11
Casting is used in Python to specify data type of a variable or convert data of one data type to another.
Being object-oriented programming language, Python uses classes to define data types. Casting is performed using constructor…