0% found this document useful (0 votes)
16 views13 pages

Adobe Scan 31-Jan-2025

The document consists of various coding exercises related to input handling, data structures, and algorithms in Python. It includes tasks for counting word frequencies, searching elements in lists and tuples, and managing student details based on marks. Each exercise is accompanied by a coding section and a space for the teacher's signature.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views13 pages

Adobe Scan 31-Jan-2025

The document consists of various coding exercises related to input handling, data structures, and algorithms in Python. It includes tasks for counting word frequencies, searching elements in lists and tuples, and managing student details based on marks. Each exercise is accompanied by a coding section and a space for the teacher's signature.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Date..

12 Page. No...
Expt. No.......

TAmi Irhut numbeuA


sturg andl Count
Alao intut an anotheed
WOo Qnl find uequeneY
that

cODING

ste inbut (u Entee


stel ste. low2

wokd inbut (" Enteu to ind

ut. count (w o udl. loweu ())


ele fxequeng ))
not
þuunt (" The

puint (" Numbeu f in tu Atuing len (lat) )


bunt(The woud", woud, abþeaa 4uequncy
the

Teacher's Signature..
0UTPUT:uos

Ent Athe bet


the

Entu to tnl
Numbee owoolu th
4egwnty
atrg 9
Honad do
The uonaldo Rne in the Ahu

) sde
Signature. Teacher's
numbeu" malkit llest (sma buint
numbeu
m) (augeat (lageat þuint
(numbee min Bmallest
=
tupl) (numbex may augest
numbena:
tuple Ent(inputC
tw eval tupl=e
coDTNG:
nurnbee
i lest sma (augeat Fine JAn
the
No.Expt.
No. Page.
13
Date.
Entase tuh le of number: (10,9 , H2, 12,
43 tauget numb t
Amolt umbee.
Date.....
Expt. No....
Page. No....

t drment numbeeA and


elementa the Jocatom
the diment at tho locator

eval(inhat Ente numbens:

s /. 2 ! 0 :

seange(O, S, 2)
i t[iI, kt[iti] =
att Awahfirg eo menta at

and loLaon

Teacher's Signature.
)
25-2 odoloeatf
ona
and eveN
2]k6, 25, 3b, |10, nUmbeus BAt Entu
0UTPUT:
Date..o..
Expt. No....
Page. No..

Am:Wite
Python to
Qnol Ato ee numbe UAt. Now
intement all numbees Qnd
oucHeement ale numbeuA 1.
by
Frbut lat = vat (intut( Enty iat of 10 nunbtua; ))
in Mngelen (inhut latH)):
at T 2 ==0:
asherd (in put lat(7j +1)
elue:
ahendl (inhut ut:|-1)
Bint Ouginal iat:", iofut
bnt new at)

Teacher's Signature.
00T PUT:

Pucieaued Bat:O,3, 2, 5, 4i?, 6,9, S, 11]


Date.....
Expt. No....
Page. No..

Am Tnput olementa Aeauc


Q give AdementA the

coDINY:

data_tye input("Ente'liat' oe tusle: ". lowes)


data tybe == " At":
elements = inhut Ente elements schevatl by shae: ")
date = liAttlementa)
el data-type tuble""
elemenls =in}u'Entee dermenta srvatzad y shaa:").sFE)
data = tuple (elem ent!)
else:
bxint("Invaliel Tnhut ")
Seauch_ element inhut"Ente the element to seaue
fou: )

Seauch element date


þuint stawch element. ound in the" data te

else:
buin('staue k elemen,itis not foun
4eund in the", date-tye))

Teacher's Signature...
OUT PUT:

Enteu denments heuated


heuated byby spatea : Ethun
May ,
Inteu lement to AtoMeh do Tohn
Tohn' dournd
Date.
Expt. No,18
Page. No...

IAn: (u tate dictionauy with the uolf nunbete


name Qnol maue& AtuosntA
clase Qnd dia blay the name stu dunta
INho have mak above

|CODTNÝ:

int (?nhutF("Entee the numbe studant; )

students

uange(i , n+1):
int("Fnte Detalla Stualent No.
Holl_mum beu = in þut('Enteu olmumbele af stuclenti
name = in put Ente name o stuount:
manks int(inhut(" Entex maxke to atudent:
studenta Holl-nunbee= "n ame"? nanee 'manka' mauka

þuint " Stu dlonta above

seollnumbet d etails stu ont temg)


" 5:
it detoil"mauka
butnt(detalli "name"

else
puint" No chudonts tith mank abeve 75.")

Teacher's Signature...
Date..*.
Expt. No.. 19. Page. No...

Pim: eate dicHon ay havlng ahate

kuy and cahital name

value fou at ast states Now


tabut Atate nam e and
þuint cafital.

CODING :

state capital =}" Mahauash tu a';" Mumbai " 11

Rajastha ": Tlpuu", u Kaxnata ka":"B tngaluu


tTamil Nadu:. (henna Punjab Chandigauh
f the stale?
state name = ingut(" Ent the name

gfate name ttate capital


Cabital state capifal
buint sfate name, 9

state nam e)

Plte:
found ")
11

puint ( sfate not

Teacher's Signature..
Date..

Expt. No....... Page. No...

Vehicle that (ontafns


details vehiclea ike Cate Name
Now input ná manufactuneu name and
the nameA

coDING:

Teacher's Signature.....

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy