Want to create interactive content? It’s easy in Genially!

Get started free

IP SEMINAR

Sai Nikitha

Created on October 19, 2023

Start designing with a free template

Discover more than 1500 professional designs like these:

Corporate Christmas Presentation

Customer Service Manual

Business Results Presentation

Meeting Plan Presentation

Business vision deck

Economic Presentation

Tech Presentation Mobile

Transcript

INTRODUCTION TO PYTHON

TEAM MEMBERS:SATYA PRIYA, ANJANA MOHANTY, RIDHIMA, VARSHINI

PYTHON

PYTHON is a popular programming language and it is a software which is open source. Python is commonly used for developing websites and software, task automation, data analysis, and data visualisation. Since it’s relatively easy to learn, Python has been adopted by many non-programmers, such as accountants and scientists, for a variety of everyday tasks, like organising finances.

DATA TYPES

A program deals with 3 types of data: integer(int) examples: ATM pin no. , aadhar card no. , phone number, etc. float(float) examples: percentage, height, weight, etc. string(str) examples: email id, password, name, etc.

TOKENS

A token is the smallest individual unit in a python program. It includes 5 types, they are: 1. keywords 2. identifiers 3. punctuators 4. literals 5. operators

KEYWORDS

Python reserves a certain set of keywords for various internal operations. These words are also known as Python Keywords.

Identifiers

Identifier is the name we give to identify a variable, function, class, module or other object. examples: Valid Identifiers Invalid Identifiers score @core Else else highest_score highest score name1 1name

PUNCTUATORS

These are the symbols that used in Python to organize the structures, statements, and expressions. Examples of punctuators in python: ‘, “, #, \, /, ( ), [ ], { }, @, ;, :, . Etc.

LITERALS

They are the values given to the variables. Integer Literals: ex: a=50 , b=10 Float Literals: ex: a= 24.8 , b= 30.0 String Literals: ex: a="hello" , b="ram"

OPERATORS

Operators are used to perform operations on variables and values.Python divides the operators in the following groups: 1. Arithematic operators 2. Relational operators 3. Logical operators 4. Membership operators 5. Identity operators

ARITHEMATIC OPERATORS

EXAMPLES OF ARITHEMATIC OPERATORS

a = 9 b = 4 print( a + b)print (a - b) print(a * b) print(a % b) print(a ** b) Output: 13 5 36 1 6561

RELATIONAL OPERATORS

EXAMPLES OF RELATIONAL OPERATORS

Examples of Relational Operators:a = 13 b = 33 print(a > b) print(a == b) print(a <= b) Output False False True True

LOGICAL OPERATORS

EXAMPLES OF LOGICAL OPERATORS

x = 5 print(x > 3 and x < 10) print(x > 10 or x < 4) print(x!=5) OUTPUT: True False False

MEMBERSHIP OPERATORS

EXAMPLES OF MEMBERSHIP OPERATORS

x = ["apple", "banana"] print("banana" in x) print("pineapple" not in x) output: True True

IDENTITY OPERATORS

EXAMPLES OF IDENTITY OPERATORS

x = ["apple", "banana"] y = ["apple", "banana"] z = x print(x is z) print(x is not z) Output: True False

QUESTIONS:

THANK YOU