python fundamentals class 11 solutions

python fundamentals class 11

class 11 computer science

python fundamentals class 11 solutions

python fundamentals class 11 solutions



The python programming language was developed by guide van rossum in 1991. python is based on two languages ABC language and modula-3.

features of python programming language 

(1) it is easy to use object oriented language with simple syntax rule.
(2) easy to understand and fewer lines of code 
(3) python is interpreted language . it execute code line by line.
(4) it can run on varieties of platform like windows, Linux, Macintosh so it is called as portable language.
(5)it is free and open source means it is freely available and we can modified or extend python.
(6) it is a powerful , complete language which includes features for scripting, web development, game development , GUI programmes and data – base application.  

drawbacks of python

(1) python is not the fastest language in term of execution time.
(2) python offers  less numbers of libraries as compare to JAVA, Perl, C language.
(3) it does not  follow strong syntax rules, therefore converting a program from python to other language is difficult to users .

Installing and using python

(1) open the website https:// www. python. org
(2) download python for windows
(3) open the google again.
(4)type sublime text. com
(5) download sublime text
(6) install python
(7) extract sublime text

typing and running python programs

(1) double click on sublime text
(2) firstly in the file and save
(3) type python program
(4) go in file and save
(5) in last step run the program (Ctrl b)

python fundamentals

(i) keywords 
(ii) identifier
(iii) literals
(iv) operators
(v) Punctuator


the smallest individual unit in a program is known as token or lexical unit.


keywords are the reserved words having special meaning in programming language.
ex- if, for, else
general- 33 keywords

(2) identifier:-                     (python fundamentals class 11)

identifiers are fundamental buildings blocks and are used for the names given to variables, objects etc.
python is a case sensitive language , means small case and uppercase letter are treated differently.
ex:- valid and invalid identifier
   a   ———–> correct
   A   ———–>  correct
   sum1  ———–>  correct
    1sum   ———–>  incorrect
    1_sum  ———–>  incorrect
    1.sum   ———–>   incorrect
    2%sum  ———–>  incorrect
    int       ———–>     incorrect
    if        ———–>     incorrect
    for     ———–>     incorrect
    sum_1  ———–>   correct


integer constants are whole numbers negative or positive without any fractional part.
ex:- 2,30,408 etc.
the text enclose in course known a string literals.
single              multi
‘abc’                ‘ab
“abc”               c’
“delhi”           ”’ab

operator in python:-

binary operator:-

(1)Arithmetic   (+,-,*,/,%)
(2)relational  (<,>,<=,>=)
(3)logical    (and, or, not)
(4)shift       (<<,>>)
(5)identify (is, is not)
(6) short hand assignment  (+=,-=,*=,/=,%=)
(7)membership  (is, not in)
(8)bit wise    ($,^,|)

unary operator

(1)+   unary plus
(2) ~   bit-wise compliment
(3)not    logical negation
(4)  –       unary minus

Punctuator :-

punctuators are symbols that are used in programming languages to organize programming-sentence
structures, and indicate the rhythm and emphasis of expressions, statements, and program structure.
   ‘  ”  #  ()  []  {}  @  ,  :  .  `  =

You may also like...

2 Responses

  1. November 8, 2020


  2. February 7, 2021

    […] python fundamentals class 11 notes […]

Leave a Reply

Your email address will not be published. Required fields are marked *