0 ratings0% found this document useful (0 votes) 2 views5 pagesPython Notes Handwritten
Python notes for beginners
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
What aye the featuyes of Or a ae
=> Python is an interpreted , Object Oxienred nigh
level CS te ae
—_____.Pyrnon has simple sunpax as compared supe ses
other languages - Purhon alles a _developey fo
piyite proqvams with fewer nes -
Python xuns en an inteypretev stem meansWhat is the Key difference between fist and.
Sis
The Key difference between the two is Ghat 2
wihlle LlistS aye mutabie, — tuples on the other |
hand aye \mmutable obsects. This means thar
lists can be modified appended ov Sliced
but tuples xemain constant and cannot be
Modified -
ives its types?)
farement that is used to yepeat
@_ayoup ef Ssfatements Qs long 9s the
Condition j Satisfied types.
Foy joop 2am ATUL Kumaet CLiikeDin).
hile loop olathe eat REL CUED
o. wihile loop.
“What 4s the use Of break Statement ?
ee arias Staten tr is_used +10 terminateWhat is the swapcase ( ) funeten jn _p
=> itt fs @Q_ Stying function which converts all
uppeycase .chayvacteys Into lowercase and_
vice vevsa- It qutomaticatly ignores aul the.
non - alphabetic characters ae aaa
* What js a negative Index 3n Puthon and
Why are they used ? ae
The Index fey the negative number starts
fvom ‘-1’ and that yepresents +he ast
Index , Me sequence carn ia el ao
the positive Numbers. ATUL kom, INKED)
Notes G (TELEGRAM).
__ new line
The negative §ndex fs also used 40 show
the §ndex +0 $02 BSE: the reing fn
eee corresponding values »
tangs, pean Values can be ata
try '
pia : "Manas Cee
Mba’What is_@ lambda Funct jon ta =
==b {The anonymous function jn Puython pcos
_|[Link] that is defined withouf a name. —
The. anonymous functions are defined
using lambda function yather than ‘def
*K__Expiain futnon Functions -
=> A function is a Selection of +he program
Ox @ block of code +har fs wiritren
once and can be execured wihenever
Xequived In the pyogvam .
peur aria (EO) z
M_ |Buir -in Functions 2 _ Bere een)
.copy() , jen(). count() are some of
Utne” bulir-3n Functions.
usey in ee eas
poor
2 Functions —aico_Knonn
FuncHons because they are not declared
vith the ‘dee’ Keyword.K that. Is a_class and an_ebject ?
=e [CLASS] - A_class can be understood as a
template OY a blueprint. which conrains
Some values Known 9s Members and some —
Set_©f yules, Known 4s Functions.
* An object yefers 40 the Instance of |
the class , which contains +he instance of
the MeMbevs and behaviours defined }n the
__liclass template.
REE eae ay TELEEPrAY
— In the veal world _ an object is an
actual entity +0 \thich @ user jntexvacts
__lwiheveas “ela {5 Tis us
A_What ave Keyword in Python £
=P __Keuword In Python are yeserved words that
have cpecial Meaning - Keyword Cannot be
used fox variable oy mo names.
ex
which are mentioned ween
and breale
= dee
else yeturn
for lambda
while tyue