SlideShare a Scribd company logo
GVK CHINMAYA VIDYALAYA
SENIOR SECONDARY SCHOOL
Kothuru, Indukurupet, SPS Nellore
Python Fundamentals
Class: 11 Subject: Python Teacher: C Vijaya
Python Operators
Operators are used to perform operations on variables and values.
Python divides the operators in the following groups:
● Arithmetic operators
● Assignment operators
● Comparison operators
● Logical operators
● Identity operators
● Membership operators
● Bitwise operators
Python Arithmetic Operators
Arithmetic operators are used with numeric values to perform
common mathematical operations:
Python Assignment Operators
Assignment operators are used to assign values to variables:
Python Comparison Operators
Comparison operators are used to compare two values:
Python Logical Operators
Logical operators are used to combine conditional statements:
Python Identity Operators
Identity operators are used to compare the objects, not if they are equal,
but if they are actually the same object, with the same memory location:
Python Membership Operators
Membership operators are used to test if a sequence is presented in an
object:
Python Bitwise Operators
Bitwise operators are used to compare (binary) numbers:
Punctuators
Various Components of Program structure:
1. Expressions
2. Comments
3. Statements
4. Function
5. Blocks and Indentation
Basic Structure of Python program
Expressions is any legal combination of symbols that represents a value.
a=15
b=2.9
a=b+3
a>7
Expressions that are values only
Complex expressions that produce a
value when evaluated
Statements: A statement is a programming instruction that does something.
Print(“Hello GVKCV”)
this statement calls print function
Comments:
Comments are the addtional readable information to clarify the source code
# First comment
# Second comment
Multi-line Comment:
Comments enclosed in triple quotes. “”” Welcome to Python Class”””
Functions:.
A function is a code that has a name and it can be reused by specifying its name in the program.
Blocks and Indentation:
A group of statements which are part of another statement or a function are called block.
Statements at same indentation level are part of same block.
Varibales:
Named labels,whose values can be used and processed during program run.
a=87
name=”GVKCV”
Variables and assignments
In python , assigning a value to a variable means,variables label is referring to that value.
a=b=c=10
x,y,z=1,2,3
Ex:
a,b,c=10,20,30
b,c,a=a+1,b+2,c+3
print(a,b,c)
O/P: 31,11,22
Multiple Assignments
Ex:
p,q=3,5
q,r=p-2.p+2
print(p,q,r)
3,1,5
A variable is defined only when you assign some value to it.
Using an undefined variable in an expression/statement causes an error called name error.
Eg:
x=10
print(x)
Variable Definition
Eg:
print(x)
x=10
This throws error
A variable pointing to a value of a certain type, can be made to point to a value/object of different type.
This is called Dynamic typing
Eg:
>>x=10
>>print(x)
>>10
>>x=”GVKCV”
>>print(x)
>>GVKCV
Dynamic Typing
Eg:
>>a=10
>>type(a)
<class’int’>
>>a=10.9
>>type(a)
<class’float’>
>>a=”gvkcv”
>>type(a)
<class’str’>
Simple input and output
Eg:
>>name=input(“Enter your name”)
Enter your name GVKCV
>>age=input(“Enter your age”)
Enter your age 22
>> name
GVKCV
>>type(name)
<class’str’>
>>age
22
>>type(age)
<class ‘str’)
>>age+1
Type Error
Note: The Input() function
always returns a value of string
type.
Reading Numbers
>> age=input(“Enter your age”)
Enter your age
22
>>age=int(age)
>>age+1
23
>>age=int(input(“Enter your age”)
Enter your age 16
>>type(age)
<class’int’>
>> age=input(“Enter your age”)
Enter your age
22
>>age=float(age)
>>age+1
23.0
>>age=float(input(“Enter your age”)
Enter your age 16
>>type(age)
<class’float>
Output Through print statement
Eg:
>>print(“Welcome to python class”)
Welcome to python class
>>a=10
>>print(“The value stored in varible a is”,a)
The value stored in variable a is 10
>>print(“My”,”Name”,”is”,”GVKCV”,sep=”....”)
My….Name….is….GVKCV
Python Fundamentals Class 11
Python Fundamentals Class 11

More Related Content

PPTX
Introduction to python for Beginners
PPTX
Presentation on python
PPTX
11 Unit 1 Chapter 02 Python Fundamentals
PPTX
Python Tutorial Part 1
PPTX
String Manipulation in Python
PPTX
Python - An Introduction
PDF
Data handling CBSE PYTHON CLASS 11
PDF
What is Python Lambda Function? Python Tutorial | Edureka
Introduction to python for Beginners
Presentation on python
11 Unit 1 Chapter 02 Python Fundamentals
Python Tutorial Part 1
String Manipulation in Python
Python - An Introduction
Data handling CBSE PYTHON CLASS 11
What is Python Lambda Function? Python Tutorial | Edureka

What's hot (20)

PPTX
Python OOPs
PDF
Python revision tour i
PPTX
FLOW OF CONTROL-INTRO PYTHON
PPTX
Python Functions
PDF
Introduction to python programming
PPT
Python Programming ppt
PDF
Python Flow Control
PPTX
Python 3 Programming Language
PPT
Flow of Control
PDF
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
PPT
Data types
PPTX
Python Programming
PDF
Python programming : Control statements
PPTX
Functions in Python
PPTX
Chapter 15 Lists
PPTX
Beginning Python Programming
PPTX
USER DEFINE FUNCTIONS IN PYTHON
PPTX
11 Unit 1 Chapter 03 Data Handling
PPTX
Tokens expressionsin C++
Python OOPs
Python revision tour i
FLOW OF CONTROL-INTRO PYTHON
Python Functions
Introduction to python programming
Python Programming ppt
Python Flow Control
Python 3 Programming Language
Flow of Control
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Data types
Python Programming
Python programming : Control statements
Functions in Python
Chapter 15 Lists
Beginning Python Programming
USER DEFINE FUNCTIONS IN PYTHON
11 Unit 1 Chapter 03 Data Handling
Tokens expressionsin C++
Ad

Similar to Python Fundamentals Class 11 (20)

PPTX
IMP PPT- Python programming fundamentals.pptx
PDF
PPE-Module-1.2 PPE-Module-1.2 PPE-Module-1.2.pdf
PDF
basics of python programming5.pdf
PPT
17575602.ppt
PPTX
20BCT23 – PYTHON PROGRAMMING.pptx
PPTX
parts_of_python_programming_language.pptx
PPTX
Basics of Python Programming
PPTX
modul-python-all.pptx
PDF
Advance Python Programming until operators.pdf
PPTX
Chapter 1 Python Revision (1).pptx the royal ac acemy
PPT
PythonCourse_02_Expressions.ppt Python introduction turorial for beginner.
PDF
computer science CLASS 11 AND 12 SYLLABUS.pdf
PPTX
Learn about Python power point presentation
PDF
Python unit 1 part-2
PPTX
MODULE. .pptx
PPTX
PDF
Data Handling.pdf
PPTX
PPT_1_9102501a-a7a1-493e-818f-cf699918bbf6.pptx
PPTX
Lecture 1 .
PDF
03-Variables, Expressions and Statements (1).pdf
IMP PPT- Python programming fundamentals.pptx
PPE-Module-1.2 PPE-Module-1.2 PPE-Module-1.2.pdf
basics of python programming5.pdf
17575602.ppt
20BCT23 – PYTHON PROGRAMMING.pptx
parts_of_python_programming_language.pptx
Basics of Python Programming
modul-python-all.pptx
Advance Python Programming until operators.pdf
Chapter 1 Python Revision (1).pptx the royal ac acemy
PythonCourse_02_Expressions.ppt Python introduction turorial for beginner.
computer science CLASS 11 AND 12 SYLLABUS.pdf
Learn about Python power point presentation
Python unit 1 part-2
MODULE. .pptx
Data Handling.pdf
PPT_1_9102501a-a7a1-493e-818f-cf699918bbf6.pptx
Lecture 1 .
03-Variables, Expressions and Statements (1).pdf
Ad

More from chinthala Vijaya Kumar (10)

PDF
GVKCV Computer Science(083) Pre board sample paper 2 Class 12 (20-21) with so...
PDF
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
PDF
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
PDF
Inserting an element in a sorted array using traditional algorithm
PDF
Binary search in Python using recursion
PDF
Linear search python CBSE Class 12
PDF
Data visualization pyplot
PDF
PDF
File handling CBSE CLASS 12
PDF
Recursion CBSE Class 12
GVKCV Computer Science(083) Pre board sample paper 2 Class 12 (20-21) with so...
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
Inserting an element in a sorted array using traditional algorithm
Binary search in Python using recursion
Linear search python CBSE Class 12
Data visualization pyplot
File handling CBSE CLASS 12
Recursion CBSE Class 12

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Lesson notes of climatology university.
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Presentation on HIE in infants and its manifestations
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Cell Structure & Organelles in detailed.
PDF
Computing-Curriculum for Schools in Ghana
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
human mycosis Human fungal infections are called human mycosis..pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Lesson notes of climatology university.
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Presentation on HIE in infants and its manifestations
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Module 4: Burden of Disease Tutorial Slides S2 2025
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
A systematic review of self-coping strategies used by university students to ...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharma ospi slides which help in ospi learning
Anesthesia in Laparoscopic Surgery in India
Cell Structure & Organelles in detailed.
Computing-Curriculum for Schools in Ghana
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3

Python Fundamentals Class 11

  • 1. GVK CHINMAYA VIDYALAYA SENIOR SECONDARY SCHOOL Kothuru, Indukurupet, SPS Nellore Python Fundamentals Class: 11 Subject: Python Teacher: C Vijaya
  • 2. Python Operators Operators are used to perform operations on variables and values. Python divides the operators in the following groups: ● Arithmetic operators ● Assignment operators ● Comparison operators ● Logical operators ● Identity operators ● Membership operators ● Bitwise operators
  • 3. Python Arithmetic Operators Arithmetic operators are used with numeric values to perform common mathematical operations:
  • 4. Python Assignment Operators Assignment operators are used to assign values to variables:
  • 5. Python Comparison Operators Comparison operators are used to compare two values:
  • 6. Python Logical Operators Logical operators are used to combine conditional statements:
  • 7. Python Identity Operators Identity operators are used to compare the objects, not if they are equal, but if they are actually the same object, with the same memory location:
  • 8. Python Membership Operators Membership operators are used to test if a sequence is presented in an object:
  • 9. Python Bitwise Operators Bitwise operators are used to compare (binary) numbers:
  • 11. Various Components of Program structure: 1. Expressions 2. Comments 3. Statements 4. Function 5. Blocks and Indentation Basic Structure of Python program
  • 12. Expressions is any legal combination of symbols that represents a value. a=15 b=2.9 a=b+3 a>7 Expressions that are values only Complex expressions that produce a value when evaluated
  • 13. Statements: A statement is a programming instruction that does something. Print(“Hello GVKCV”) this statement calls print function
  • 14. Comments: Comments are the addtional readable information to clarify the source code # First comment # Second comment Multi-line Comment: Comments enclosed in triple quotes. “”” Welcome to Python Class”””
  • 15. Functions:. A function is a code that has a name and it can be reused by specifying its name in the program.
  • 16. Blocks and Indentation: A group of statements which are part of another statement or a function are called block. Statements at same indentation level are part of same block.
  • 17. Varibales: Named labels,whose values can be used and processed during program run. a=87 name=”GVKCV” Variables and assignments
  • 18. In python , assigning a value to a variable means,variables label is referring to that value. a=b=c=10 x,y,z=1,2,3 Ex: a,b,c=10,20,30 b,c,a=a+1,b+2,c+3 print(a,b,c) O/P: 31,11,22 Multiple Assignments Ex: p,q=3,5 q,r=p-2.p+2 print(p,q,r) 3,1,5
  • 19. A variable is defined only when you assign some value to it. Using an undefined variable in an expression/statement causes an error called name error. Eg: x=10 print(x) Variable Definition Eg: print(x) x=10 This throws error
  • 20. A variable pointing to a value of a certain type, can be made to point to a value/object of different type. This is called Dynamic typing Eg: >>x=10 >>print(x) >>10 >>x=”GVKCV” >>print(x) >>GVKCV Dynamic Typing Eg: >>a=10 >>type(a) <class’int’> >>a=10.9 >>type(a) <class’float’> >>a=”gvkcv” >>type(a) <class’str’>
  • 21. Simple input and output Eg: >>name=input(“Enter your name”) Enter your name GVKCV >>age=input(“Enter your age”) Enter your age 22 >> name GVKCV >>type(name) <class’str’> >>age 22 >>type(age) <class ‘str’) >>age+1 Type Error Note: The Input() function always returns a value of string type.
  • 22. Reading Numbers >> age=input(“Enter your age”) Enter your age 22 >>age=int(age) >>age+1 23 >>age=int(input(“Enter your age”) Enter your age 16 >>type(age) <class’int’> >> age=input(“Enter your age”) Enter your age 22 >>age=float(age) >>age+1 23.0 >>age=float(input(“Enter your age”) Enter your age 16 >>type(age) <class’float>
  • 23. Output Through print statement Eg: >>print(“Welcome to python class”) Welcome to python class >>a=10 >>print(“The value stored in varible a is”,a) The value stored in variable a is 10 >>print(“My”,”Name”,”is”,”GVKCV”,sep=”....”) My….Name….is….GVKCV