Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

Government Women Engineering College, Ajmer

Bikaner Technical University, Bikaner

Python Programming Language


An
Internship Training and Project Presentation
Submitted in partial fulfillment for the award of the Degree of
Bachelor of Technology in Department of Computer Science and Engineering
Submitted To: Submitted By:
Ms. Parvati Bhurani Lakshita Soni
Assistant Professor B.Tech CSE-A
Dept. of CSE 20CSE053
Training Details:
 Topic : Python Basics
 Mode of Training : Online
 Platform : Coursera
 Start Date : 1 June 2021
 End Date : 28 June 2021
 Duration : 4 Weeks
 Number of Hours : 40 Hours
 Marks Obtained : 100%
What is Python ?

Python is an interpreted high-level general-purpose programming


language. Its design philosophy emphasizes code readability with its use
of significant indentation. Its language constructs as well as its object-
oriented approach aim to help programmers write clear, logical code for
small and large-scale projects.
It is used for:
• web development (server-side),
• software development,
• mathematics,

• system scripting.
Features of Python
• Python was designed for readability, and has some similarities to the English
language with influence from mathematics.

• Python uses new lines to complete a command, as opposed to other


programming languages which often use semicolons or parentheses.

• Python relies on indentation, using whitespace, to define scope; such as the


scope of loops, functions and classes. Other programming languages often use
curly-brackets for this purpose.

Python Syntax
Example :-
>>>print("Hello, World!")
Hello, World!
Python Data Types
In programming, data type is an important concept.
Variables can store data of different types, and different types can do different things.
Python has the following data types built-in by default, in these categories:
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview

In Python, the data type is set when you assign a value to a variable
Example :-
x=5
print(x)
Conditional Statements in Python
• If else and elif in python
If else and elif statements are a multiway decision taken by our program due to certain condition in our
code.
• Relational operator
it is used to evaluate conditions inside the if statements. Some examples of relational operators are:

1. == equals , 2. >= greater than/ equal to, 3. <= smaller than/equal to

● Logical operators

in python logical operators operate on conditional statements.

example:

And = true if both operands are true else false

Or= true if atleast one operands are true else false

not= inverts true to false and false to true


Loops in Python
Types of loops in python Primarily there are two types of loops in python
1.while loop
2.For loop

● While loop
The syntax of a while loop
While condition:
#body of the loop

● For loop:
For loop is used to iterate through a sequence like list ,tuple or string[iterables]
Syntax: l=[1 ,7,8]
For item in l:
Print (item)
THANK YOU

You might also like