0% found this document useful (0 votes)
2 views

python assignment 3

The document discusses various programming concepts and techniques in Python, including list comprehensions, operators, and functions. It provides examples for creating lists, differentiating between division operators, and manipulating strings. Additionally, it covers file handling and data visualization using libraries such as Matplotlib.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
2 views

python assignment 3

The document discusses various programming concepts and techniques in Python, including list comprehensions, operators, and functions. It provides examples for creating lists, differentiating between division operators, and manipulating strings. Additionally, it covers file handling and data visualization using libraries such as Matplotlib.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
eS ———————_—___—= ” Paper— 2023-24 => Germs ard a ~ Assignments 03 ~ us Desoribe the Concept of Oist Grnprebensiony S Usith a Suitable example: Fins Ltst Gonprehension Ye a Gonase way to » Create Dicts Im python follows to ~ gensrate Orets using a ctngle Orne — Gde HG ~ Consicts of an _Sxpressio followed by a \ ~ -for_Qoop Inside Square brackets + E ~ exas— 4 es ~ Squares = Cx * 2: fou x tn drange isd ~ print Lsquares) eoeeeeeee s : ps its “ =p Owkpuk (o, 1,4, 4% 16 ) >— : | 4ch-> Differentiate “between and /] operator _toitho 5 P - example- - — 7 a a Rosie Lis thse division opesiatoa “that Syebusins o- : Float tag-= potnt result | r [| is the Floor division opevatess thot _syebusins 3 the Dargest integer 1855 _ than or equal _to—tee - Fae Siesta oe > ___ By¥at=—— a arava s 3 J=3 i i i a he wgnt (XS y)- feoutpst it 2° a | Forint Ca) He purput $2 — the Jo put= ach word «the “Concatenstion harecte ns b> “Linol— results Ts —O of the word processed: O- nA LeseF 44 owipuks nt f a pte oer’? aad> pie oe Sa from libra 4 — ey PY an ast u nee ee the c, Bent 4 Library! yt “Jef ny function). ~ : in‘ tells From 02 “ fem Dibs om brary” — aaa a He — ae de> + a + Hnspate. 1 Sis fae 4 zs —a_func funcHon 4 as enerate—Qtnearly cpaced_that abate x [oT Boe bello” dsc ips! | iD kr wr - Charecters of the string Helle’ hich Ys Ts hat allowed + +s 1¢g)> PetplotOtl Rodos — TY + plot O- lets 0. _| pata framel): Creates a r F goer clad ata frao. EP Geaktert_): Greate a Satter |read—Covc os Reads dota ~~ plar i ____ Frem_a csv File — + shld: ‘pleds a bi head ()+ Di the first] Po eae a pia a = “chant < Pispgs the plot. Idecothec ). Prowldes alata _____d-etei | — 1 B : ~Xlabu)s Se lal fr the | OO. Gri dato re gibt Cyt gees = ee eat mas am 4 —— = <2 Te rs ri ._* rr. rea] > 5 _Godex O- es index Spy di =) Repusin—t TL of Qist L-— Ret buen a Sisk e(eD =i eet ee word ss pOit ura —[ os Wond s eae 2 Syepusin C ds jain Ludosds De Be = [onsets toodids(* tutto, hello, bag. oatild pe bog. hello, _woithout, tworld - > s - 2 » re ~ > 4c4)> oe pone eee deh : Ach Pp emit dtp): 7 5 | sof 1. 7 ; oe dT pasasased « sput l! ~o a E (sree Seasith (94' Ca-21, passuns _ Se. Cos fo=w, Pea ~_sye‘Seasich( 4! CA- ty passcnid) and oc! LEH ©) passusodt] 008 se -Seasch [ 6<= Deon (passtnosid JZ= W- Void — passunosd. : append Lpassons —Sretusin 1 jole C\radid — passonsid) = © NS | 4 after each Itexotion, eventuall NS 4 a the— Qoop tohern Count exce ~ = » _ fos. 9 7 a “esuades ove ES a ~~ Baap quence ee as >» Toms ~exe tutes block — ae > each fn the Sequence) —— = = » | €xq%— oa y pants as | Runners = eee fumbese 2 ————_—_— pean ce eal : Seta det sein — Cmallest=— a ate Rae ta a ee te 9 C Qe Qer — Be cares es — eee oa 2 = Coa, Byte 12, 1%, 14,16 4 ca ae cotpael Tad. sa 7 ELee

You might also like