Skip to main content
Open navigation menu
Close suggestions
Search
Search
en
Change Language, English
Upload
Sign in
Sign in
0 ratings
0% found this document useful (0 votes)
10 views
13 pages
Module 2 Part 1
AI related modules & Questions
Uploaded by
minecrafthometours
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
Download
Save
Save Module 2 Part 1 For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
10 views
13 pages
Module 2 Part 1
AI related modules & Questions
Uploaded by
minecrafthometours
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
Go to previous items
Download
Save
Save Module 2 Part 1 For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
Go to next items
Download
Save Module 2 Part 1 For Later
Share
More options
Fullscreen
uytdon Py thor To waite we use PE Command PdomP+ XK s>> ¥ >>> Painale Helio”) \>>> hello aprsieds Ki is Vadiable name, Tancil ¥Kures can noi use Keyword ag idenitieds DN should Not conrad whrie sPace Thesgade Case sensitive > laensiified name musi siadd withal althale! od at undedscode only lt Cannot Stati with adign Dararytes Yoasi < Ayres | inafloat, comPles, bool, SisPg Dconrained tyfes Lis} AuPle,dic, set ‘Dosen defined Ayhes Class D> ryte of 0) X15 a function ro dereimine whieh daroyfe have | jaensi fied on page: ec ern Benny bgnes (O= 35 “>> >eaing (tate of) >>>in . MultiPle Vadiable Assignment =o P= 9-14) N=\abc’ OP =10,$:14,'abc’A=f=N=b Adithtne tic ofedatons aes oro +,%,-,1,%lo, I] Wlood dinision ofe daiwa), Xx L eExctonential Ofedatod Aollg = AXXb~ a” i yn Precedence and associativity Nod) ¥ Pdecedence is stich oPedatod Is will execute rst XK Pdecedence ondedsSrhiqhed Pdecedence +o lowed Preclence > LY, X¥ [Aight Steet ascociativitg),-% ~ | =I] ~ alo (WersHitht i et ‘ rE | acsoctativid) , + - ~ (ers B diaht associativin) : 3 ; . iviay dale fad Yi game Precedences in ah ofedaiian will obey associat” N Tyee convedsion. (a= OH a= % Pains LA) = 9:14 Fdint@d= N43 (D~ intLD=9 mr8 y FjoatlD=9'0 Tunciions in conversions: IMF Ly, Mo atl, comer OQ) bool) a=9-14 Paint (@~O-l4 Painalinsd) => PAinalbooltA=l Built-in functions ab Six) Dabsoluie Value of a Powlx,)> Powtd of L ot tnin (ety cca, > minum Nalue ey > Mascimum Valee iv rod (2.9) > Paid => xis * oo). — - ; d : Tdound (x, fr) 2>% dounded, 40 Mf ass atte binlD-—Sbinady value eguivalend) of T - pies PCALD-> ocral value equivalent of hex@ hexadecimal voue equivalent of * Huili~in modules | KM For mathematical funciions( oredatisos) Ymacth (using imeodd) . >Pi,e-Value of consiants Fie >SdaiHl)— Sfucte doo} of D Pacrodi allQ-factotiad of) TS Laos (cd) “absolute Value of float % P logt-Q-narual Ipg of 1092048 the base © me Plog lD- Madurai logos xv, legrde the base 6 Sx plz) -exfonent of x, e% | DSAdunc (sQ) = aduncate to insedes >CEMD -counded to smallest imeged > Fhod Q~reundedto laigest imreged PMedf0) factional arck ieged fast of ~ Orn Coniained dortaryres oo Vig the Collectio of data irems (arues AS Drisi : | ¥ Rey wioda ts List j | Xelemonis ewe Hefdesenied in squade baackersy y KW AHIS any elements can ingedted’ — -KMistd datatyfes a in the tis} initiated by, Lish 1ST V.46,"ane] RemPly Wet, LISM= PY K Collection of ddeded: ements X muravie laetlacariewe can chansé) Wire co blewmae wij.) - 1 ioeXSet Kedwodd tc used Xlemenis ade defdesentedin cudiy bdacesk 4 XK iMitvaigen, emPiy sei, seit =sao Kunoddeded cotlection XMutarie Kho teaate 4 % Ueane cde tonto elemenis(no defeated elements) NTurre XTuPe Keywodd is used ye Xelemenys ade dePdesented 19 0 Xn Anis any elements can insedted Kmixed doraiytes ade imahe is Kemer lisd is initiated b4, yuPlel =O Koddeded Colle ction K immutable X Vredable ) pica KOIcd Keyword is used fod dicttonady Xp is the collection of Key Value aids Kunoddeded collection Marae XK No itedate 4 KDA =f name’: anw’s ‘age’: ¢} Died a fame = anu DSSingye ine command St mult Vine commaMd Sr 717 og WW YY _ D> siorementa | _ SHatement4saiement2 Statement 2yA ewe 7 ay Q waive a Pdogdam 40 ened a No rn! and) PAM 8 ig ‘A ie yy Paint no ipa is -ve Ans C=inilineus Henred anvmnbsAr) \f n>o. Print nxn e\se Paing AxOxKN ss while Aw\ Winile condi Aron: Awhile condition, we Stade ments : SyatementS aioe SiaremeMts fod >for a Wo Vist, 3}. Sod a WN US Slade MeN ts Siahe memMs els e Giotements DP ranger Sgenedare a SeQueNnce oF inregeds Mange (10) >> eacecure fdom 0-4 At Mange Ataay execute 10-1 jor a dange Cle, £5,355 10 \2 14 6 19 >for i in dange (toro, 9), Paing ix} OVATUA SD \ORVO/VIXVD/AMAIM, [6 X16, 4 X14 SD Wdeok and consinue Gading ae ‘ Shae Pdesettarion> A=immutable > No elements S=\Wello’ 4 Sal ate’ Deddod mn S'Bye’ a Pe we an chonge Bre Value of $0 WE CaN Mor change dh, Clemens in a siding: |b Do yding concarenaton S=‘Wetlo’ Yo'wodld’ 1 Fading S4Y SHellowodia XK) % D> times to distlay [fear 5 = Netto! | Painy 5X2 jouttud > Vello Hello #)Paing Ua’) OUdKuUd > AQAA0 | | Kin Syo check one siaingleumetaicg|chadacted! 1S the Fass ef aniorthed Siding, q 7 Pains Le’ in welld) Oudfud D> taue (pigar a Clement Siding ch Qoei asin: false tee > f 1 SAding sheing: j pind AW is to cheats a Swosrding, Aram a large siding DF A='fello Wodld’ 01815) —Heto ATs1ad4: endl - Hello Wod) Afsiaadlgeowoedla Be 3h. Hip,Nor in >To check one SAMIN§ is Noy Padi EX Pina batec’ nos in ‘Hello? Oud PUA STaue Of anoihed Siding Functions in SATIN gs KEN S length of siaing x MINDS chadacted with minimum Vaiue MN Heo’) =e Max) Schadacken with maximum Value Max Welle’) -0 KiSalthaWscheck ig Ql Ehanacteds in a Siding ane alPhabess &9: isalPhathelo 2) ~ false Kisdi¥iry senecy THAN chadacteds in a sading ade digits E91 aigis Las) —4aue tsalthalneioi)=false F Wsalnuy > check if all chadacieds ade alPhabets on numbers £9 isalnum (4 hello) = false % issloweaW STo check all leieds ad@ lowed case 24s toslowed (Helio) = false Isslowed (shetto)) = Adue K lourreddSTo check all lerreds ade utfed case C4; Tourfed WHettod) =falce VsurPed UWELLO’) =14 ue X stais with) STo checra siding siads with a value ~ A= Rellowodlda Sadie witht) = false Brads witht) =tdue4 ith 0 Value lends WAH To check a sading ends! e4:a=Hello ends with (8) = false endgwith 0G =Adue Find Sseanches aValue and wilt [8 $ dePlace one Value with an othe ten iis Positton [eda Welto? Netlace lv) O=\Wetto’ HK IYoin SJoinis syaing into each ekemensd of siding one | VarceAy last Glia I eg: fain LY”. join ( Hello% oat outfud > W-e8-\-1-0 K Urea > conveds inio utfed case €4: a helo & ubPedd) OusPut > HELLO ¥ lowed cy S convent indo towed 645° €4: a =NELLO & fowed) ourtus >hello ¥ cafijali ze Pings chadacter is coWedted inyo urhedcase £4: a= hello acafita\izel) Ourfud > Wello AAANED Dconveds I characten. of eachwoddinte ule" ia Wiser eB. a= Weg world le AAiNELyOut Pure Hello World X Swlakcas els > (powedied towed case to UPRed Code and UPted Case io loweNncace PY a= HELIO WoRLA OA -SwaPcaset’) Oulfus> WelLo Worl0 KSANIPO STo nemove white shares {Hot the begining to the end a=" Hello” A-SiAiec) OUMPUAS * Melo! KSMA D To sPhit a siding inte Sule Sidings CY A=" Hello wortta’ PaindLa sehial™ >) OUIFUAD" Wello”, wwodla” SAding¢ ComPandisol: a ey ok XTo comPade she Sidings We USC L,>, 4-79 =, = Na [List AH Vendy renath of Ns HARe yD Pe 7 ” 29: ReGed = [rarrie " Vodange", "qaare™| Age (a) Out Put > class ‘list’> Functions used to insedd: ¥ ingens > inseda elements to Indes 24: a= Partie",“odangel | actnsens 1," anate?) 1 7 outful > als apbie”,"aaare’"0norae"l 7% af tend >To add Of Hern Aoi sne €% fo BFF “§aafer nw 7 2 a Fen RUSSO Cone quae | a of ahe listca Bi iNto anodhed a Keen >To add a \ist of element ilo ; be RV ae Pageler,” odangey b=[P dea”, Yellow") aexiendlQ vw de," yellow? ears > Tnahhier, pois Kidemeve ra STo demove astecified We C4 a=[Nae rie”, VodangeM A derove [Hodang ery Ousfud > az[roerietl X Por >To demmove an eremert fdom 4 > ZIJia. oe) : Ourtul>a.=frarelell IP dou aon't she city index ,!As4 qume ¥ dev same function of PoeLd €Y. del afsy OudP ud >ax[odange”) IF you aonlt Stecifiy inde, the Net 1S fully! demoved yor DVictionady Or\ oe ¥ Cad =f" odand! wad ushi?, ‘model’; 'masiang’, ‘Yead’ + "2009? fet Kiusedto Stone data in Key colwnnng jues Koddeded tre % Clements ade intered; boolean sAaing Nis of cements K€: Veolon’ [rdea!, Weluer XK do not allow dutlicates | pon pacified der 4 will demoved 31990 i* Vo change the value of LGRHA Stites is, Canfyeady = 209% Functions in dictionad 4 Kien >D length of dictionady Krvrey > Ayre of dicionady CI Anke ead 8 NP > Kcrasg talev> ACcessiNg elements fom a dictionary’ ACCESSINT elements or < ae Dae C4. cad-Qed (“baand” olf >madushi 3) Wegsea ea lisy of Keds SS cod neysl) X= cad Keys lf >a = Brodana’,® modet”," yeaa” YNatuesey p4et list of values CY. = cadNaluest) PSX = Tommadurhi”, *tastang”," 26007 idermey ger isa of ReyNalue Paid C4. 8¢ ca dtiemsly olf 2% ~[pdana’ Madurhi), C moael’ change vaiues fdom dictionary: Dea:cadpryead’S ="200H" J uhdsey lea: cad-utdatelfYead’s! aeou'l) Ada i1eMS yo dictionady: ea pan ficniea a! nea? 2 3 rpastangy), {seas a
You might also like
PDF Scanner-07 - 03 - 2025-04 - 36 - 47
PDF
No ratings yet
PDF Scanner-07 - 03 - 2025-04 - 36 - 47
48 pages
Basics of C Programming
PDF
No ratings yet
Basics of C Programming
12 pages
Python Notes-1 Handwritten
PDF
No ratings yet
Python Notes-1 Handwritten
19 pages
Unit 4 (Array) - Notes by Prof. Sanskruti
PDF
No ratings yet
Unit 4 (Array) - Notes by Prof. Sanskruti
22 pages
Python 1
PDF
No ratings yet
Python 1
19 pages
Python
PDF
No ratings yet
Python
16 pages
Semantic Analysis in Compiler Design
PDF
No ratings yet
Semantic Analysis in Compiler Design
32 pages
Module 2 - Verilog HDL
PDF
No ratings yet
Module 2 - Verilog HDL
37 pages
Adobe Scan May 18, 2023
PDF
No ratings yet
Adobe Scan May 18, 2023
126 pages
Syntax-Directed Translation of Attributes
PDF
No ratings yet
Syntax-Directed Translation of Attributes
36 pages
Python Variable Naming Conventions
PDF
No ratings yet
Python Variable Naming Conventions
25 pages
C Notes
PDF
No ratings yet
C Notes
44 pages
R Programming Notes
PDF
No ratings yet
R Programming Notes
13 pages
C LANGUAGE - Data Types
PDF
No ratings yet
C LANGUAGE - Data Types
11 pages
AOA - 1. Introduction
PDF
No ratings yet
AOA - 1. Introduction
14 pages
Js
PDF
No ratings yet
Js
26 pages
B.tech - 4TH Sem - Common - Python Programming - Unit-1 - Notes PDF 2025
PDF
No ratings yet
B.tech - 4TH Sem - Common - Python Programming - Unit-1 - Notes PDF 2025
18 pages
Pyton Notes 2
PDF
No ratings yet
Pyton Notes 2
29 pages
PPS ch1
PDF
No ratings yet
PPS ch1
56 pages
Augmented Grammar and Semantic Rules
PDF
No ratings yet
Augmented Grammar and Semantic Rules
25 pages
Python-Unit-4 R16
PDF
No ratings yet
Python-Unit-4 R16
18 pages
Saksham 93
PDF
No ratings yet
Saksham 93
12 pages
Python Notes 2
PDF
No ratings yet
Python Notes 2
38 pages
C Program Ass 2
PDF
No ratings yet
C Program Ass 2
11 pages
PPS Handwritten Notes
PDF
83% (6)
PPS Handwritten Notes
142 pages
UNIT V - Verilog HDL Handwritten Notes
PDF
No ratings yet
UNIT V - Verilog HDL Handwritten Notes
11 pages
C Programming Notes
PDF
No ratings yet
C Programming Notes
130 pages
Assignment 03
PDF
No ratings yet
Assignment 03
11 pages
All Unit
PDF
No ratings yet
All Unit
7 pages
1696123699200
PDF
No ratings yet
1696123699200
73 pages
PPS Imp Question Answers
PDF
No ratings yet
PPS Imp Question Answers
16 pages
Data Science Theory Ashwin
PDF
No ratings yet
Data Science Theory Ashwin
107 pages
Components and Functions of a Computer
PDF
No ratings yet
Components and Functions of a Computer
20 pages
MODULE 3 Functions. E-Note
PDF
No ratings yet
MODULE 3 Functions. E-Note
78 pages
Python Dictionary from Two Lists
PDF
No ratings yet
Python Dictionary from Two Lists
11 pages
Verilog Mod2@Azdocuments - in
PDF
No ratings yet
Verilog Mod2@Azdocuments - in
37 pages
Cms Project
PDF
No ratings yet
Cms Project
51 pages
FPL Unit 1 Notes
PDF
No ratings yet
FPL Unit 1 Notes
20 pages
Packages in Python
PDF
No ratings yet
Packages in Python
51 pages
Ppa Notes (F)
PDF
No ratings yet
Ppa Notes (F)
17 pages
Programming Concepts and Error Handling
PDF
No ratings yet
Programming Concepts and Error Handling
23 pages
Python Handwritten Notes 11zon
PDF
No ratings yet
Python Handwritten Notes 11zon
193 pages
PHP Assignment 2
PDF
No ratings yet
PHP Assignment 2
10 pages
PDS Komal Ma'am Assignment
PDF
No ratings yet
PDS Komal Ma'am Assignment
22 pages
Python Notes Week 2
PDF
No ratings yet
Python Notes Week 2
3 pages
PIC Chapter 1. Basic of C Programming.
PDF
No ratings yet
PIC Chapter 1. Basic of C Programming.
33 pages
Swayam Term Work
PDF
No ratings yet
Swayam Term Work
28 pages
C Notes
PDF
No ratings yet
C Notes
25 pages
C Programming Note C+
PDF
No ratings yet
C Programming Note C+
38 pages
Data Structure Using C Hand Written Notes
PDF
No ratings yet
Data Structure Using C Hand Written Notes
70 pages
Mad Study Question Bank
PDF
No ratings yet
Mad Study Question Bank
12 pages
Python Data Structures Overview
PDF
No ratings yet
Python Data Structures Overview
4 pages
Javascript Handwritten Notes
PDF
No ratings yet
Javascript Handwritten Notes
28 pages
Object Oriented Programming in C++
PDF
No ratings yet
Object Oriented Programming in C++
28 pages
Javascript Handwritten Notes
PDF
No ratings yet
Javascript Handwritten Notes
28 pages
Data Typerffffffffffffffffffffffffffffff
PDF
No ratings yet
Data Typerffffffffffffffffffffffffffffff
15 pages
IT Mid 4
PDF
No ratings yet
IT Mid 4
13 pages