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

Python

The document contains a series of experiments related to Python programming, each detailing a specific task or algorithm to be implemented. It includes experiment titles, theoretical backgrounds, algorithms, and sample outputs for various programming challenges. The experiments cover topics such as calculating student details, Fibonacci sequences, binomial coefficients, and error handling in division operations.

Uploaded by

Nisarga Dangi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Python

The document contains a series of experiments related to Python programming, each detailing a specific task or algorithm to be implemented. It includes experiment titles, theoretical backgrounds, algorithms, and sample outputs for various programming challenges. The experiments cover topics such as calculating student details, Fibonacci sequences, binomial coefficients, and error handling in division operations.

Uploaded by

Nisarga Dangi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Experiment Name: Date :

Experiment No. A Page No. :

TLE Pyhon þrogTam to ad studunt deta'ls


PeoseAM -SIIEMEALT : wylH A ython prygrom to tend the studeat
dstrile te Name ULN & 6 MaYts In thre (ubfecte Displas
the cHudent detailk total marte & pertentagt with suta ble

THEOPA:
prnq YAM dunea ctudnt clatr ofth
Thle bong
For name, UA & MOrt PE ncludee tlatt oth attribuke
Ilude mt thod to (alutake te heYtentnqe d ceshlay ctudat
daaile ht txAmple

Alhn etTHM:
(tart

SH6 0R (aleulae then nead name. DUN M No, Ma

CLb 0S Prtnt he ctudnt dtall IRhe noM D


VCAL MNM,
Pertntag:
6667Marts:
g0. total43 stucunt
detail: fnter 0UTPUT
name
0f
the
SHudnt
:
(hcg

Experiment
No. :Name :
Experiment

protO
mare:tal rintHudnt
Details:) NOMM (oMMENTK
PROGRANM
oIH
Disþla Pondtng
dttalt
fnbut
=
Inhut
the 3
chtdant (Eotal ENHY

datalle Mar! NaMe


of
(oo)300 *
the
(hudunk
Page
No.: Date :

# #
(altulote
(aleutatk

total
he
perantnge oOrf.
Experiment Name : Date:

Page No.:
Experiment No.: 18

TiTLE

wholher peton P centor cotn oY not.

HEORY

DeYon A (entor cttnn baed on a bedafind ae thechold

(alutate thetr aqt6 then ditexmines E they Ate a snfor ébus


basd on the theei£id age thret hold.
ALhoRITHM:

Kth 02 Prad M +
Danesh
entr RUN : Entr OUTPUT
Ps name brh
a
sentor of year
He of
UHun
þerdon the
: ptrcon:
DAneth
300S

Experiment
No. :Name:
Experiment

(oMMENNTS:
From PRO6RAMoA
dtals
Paoding
Rnput
datR
Hme
Pub
ort
date

PageNo. :Date:
Experiment Name : Date :

Experiment No. : AA Page No. :

TITLE FthOnacei

xoqYom ctote moAt Develop a þyhon paoqzonm to qereiate


borad keqnto OF hgth (N) Read N from the Consote
THEORY
The frbonatti seq1ushe
NUmbet wNre eaUh nunber ! the tum of top preodMQ bnee.

qenaKate tbonatui hat takee the dotred (ongth a tnhut &


NnYatte the Fhonatei 0f that The
crored en the Athonatu eountet The 'ohtlt looh tonHAue
on the dutred tung th fe ahieved. Ptodlly the Aun (son rttuUrn.
the

Se D3 (heate a e t to Store the numbAr.

ft bonatti teglunte ttng ndy o beAore no


Cth o6: Add numher to lt ung aphnd metho
RUN 3! RUNJ: RUNI: OUTPUT -
01 011 fnitr
8 he
3$g stq
usntt
13
Jong
h,
N:&

Experiment
No. :Name:
Experiment

Selond
trm 1 PeO6
(hetk RA
M
Rahtat A wITH
and
Cetond OMME
quneYate ATS:
he
erm looh
to
Setondterm.
For nd
) Intetnr.
nxE ?hnnat
TtmaNng
term
teq Page
No.: Date:

A-a unte
terms attodinq

liy
Experiment Name: Date :

Experiment No. : 28 Page No. :

T1LE Aonthon o (aleutatt Fathtal of a number

PeobRAM sIATEMEAT: ue a Aontsan to colltutote kathorfal 0E

THEOR!
The Sinomlat totAitient OfIROn dnDked at

Tentd to the order n by hon you tan Compatt IE uctng


thd tonmuA

""dnnhet the Pathr Euntbon to mhlumnt h?t in puhon


the tinomlal (oeE£icient funchDM ho tomhute the bino m~al

ALbbeITHN!
SHh 4:tart

(Hh s : 0rte Hhe formula to taleulate

: End
Experiment Name: Date:

Experiment No. : Page No. :

01PUT
PR0GRAM 0OITH (O MMEATC
RUN L:

ntr Hhe value of R3


duf fachoral (n)
RUN 3:

#Main (ode or Drtuing code to tomþute Rinomial (oefeii'ent


RUNI:
A Pnt (enbut ' EAr the Value DEA:)
fntr the Value 6F;)

Eatorla (N-))

Drcpla the BinoTm?al CoEHtient


Experiment Name: Date :

Experiment No. : 2 Page No. :

python bogrom o read N


A NUmbtrs From he (ansol
PeoG RAM (IATEMENT:
Erom the tontole to brtat man, vattant &o staodad deuiabn.

THEDRU

Comtole A£KY that PE taleulat!s do brlnk he mtan, Varian(&


and avd duiaboo 0FOF the ntered numbtr.

AlLoeiTHM:
SHart
(tp A : mbort the modul math.

txate a eMbty t to shore number lnum)

Hhe

: End
standord Ènttr EnHr OUTPUT:
RUNI:

Num Num
davta'on btr ber
3 1
! 3.3 3.
4
1.RD

Experiment
No.: Name:
Experiment

brnt (td # Man = For Rmbort


YnatPeol,RAM
h
Diþlas aleutate taleulate
riante\o
altutate
(ton duiah
(numbtr)
(um ntAM Num Pn
Moun, on bert
ctandatd Muan =foat ranqe
dard =
Vatiante, Math. abheod
(nbut N):
peutabon Deuiabon
sqrt (aum)
and (C
(Uariante) "Enter
skdut tandaYd
Number
PageNo. :Date:
aBon) duuiahon
(it13:)
Experiment Name: Date:
Experiment No. : a Page No. :

ILE: Pyhon_ þngonm to Ynd mtuth diqit nuabey


PROGRAM (TATEMENT: h ea muth_digit

THEORY:

Pnaer wing int (), This poreYam bYomph the uet to enter
thing. Conutrt
E to an intqr, thon brtnte Hhe 7ut teeh m mind that

AlhDPITHM:

tor lonp
Mulk
RUA1 : PUT:0U1
Hequen EnHr
ty Muth- a
Of
4 dr¡tE
S
number
:
4r3499443

hai

Experiment
No. :Name
Experiment

YRO,RAM
for DIplay # oY
diqtt. tharatter
the W11H
tn
tqunty Preqtnty Charlt:1
Frtqunly
Ht-dBptt
qunuy muH-digtt (oMMENE(

in
tfyLn of -diqlt. !
NUM:
t eath st Irtqunis
diIeqMtl(t): d¡tt. dEaut
of PageNo. : Date:
(Char, tath
o) dl¡tt.
t
A
drchngtrythetod
He
diglt
Experiment Name: Date:
Experiment No. : C Page No. :

TItLE:

PeOGRAA STATEMEALT: DevetopA puon þroq ham do (ort the


Stherate ttxE Ale.

THEORY
10 (tente uhon og tam to (ort the Content

the toyted Jine to the outhut l


ALh021M:

Step 4:OLe for tooh OF t abbend matod to add Hhe wordt in


the tet.
ExperimentNo. Name:
Experiment

|VyTHON
Dhen E-Jine.
sort)
FoY ('o:)mbort ysImort
oL.Chdir or0
os
It Une pathlih PoG,
new
n drttory
(uYrnt
Alo inginbt- imhort
2AM
to ahhtnd oITH
have
tonte r.
path CONMENNÍS
(linu. Yead tead
the
Ihih hermies
(ortto iney
(0) t
() ion) (Hrpo
ne +
oben th PageNo.: Date:

the Cwdo)
Prta
In +
teod :")

mode
Experiment Name : Date:

Experiment No. Page No. :

writ Hhe tontent ot Iner neg to toned. Frl. Frt


For Jrne In Jict Jne:

le ollh the none, orted ilo. nam


Experiment Name: Date:

Experiment No. Page No. :

wbYd
Experient Name Date:

Experiment No. Page No.

nahort thing.

inhut

frle handl then (Alenam) oheny the tl ntMad Mode

for ne in Rlo handle:


trimin
for (har in ine !
IF (hot nÙt n chring. bonthuahon:
trim dne t (haY
Experiment Name: Date:

Experiment No. : t on veutE Page No.:

Fotclot

PLoGRAM STATEMENO Puthon rogtam ho balk up a qivn Polder


(04ng reevatt modults t cthle method

rom hanuh Yhnpart path


0S. Ohder ('D:)

urYenE UOr ting Dlytthony


urtnt toarking. dr Paáh, (uodO

dIndars

4check whg Hhe dretory txtts


I nof b, path.s dir (Poldir nome:
print (F Foldar -ffold. 00nL dotn't ext
Experiment Name: Date :

Experiment No. : Page No.:

Add al the Arlee ard toldore fotder teuttve

prNE (E Folder " folcur nong hos been 2ibhed tulesBully

Frley from the Soute folcler to he dubnnbon Poldler whle ncldeng

ALoRTHM:
SHth o1: Imhor Jhutl Module
SH 0A: hattfy Hhe courte folder bath that you wont to batkub
Foldar path here oant
to save he hatkup

foldt te PFL tonttnt to the duhnaßon


Experiment Name : Date:

Experiment No. : Q Page No.:

PPOG RAM TATEMEAD : WH 0tKerHon Eor a20 n fonthon Div ¬xp d

THEDRY:

that nmay oleur during Hoe


dvisoY, Ahen PE Ztyobivikion Ertor IE on exlbBon aed olhin

ALGoeTAM:

sEp 3: tntr Inbut values Prom he onsole.

hondg he txlhRon.
AstyHon fntr
ZtroDrvision Enttr Entr
RUN3: PUN : Enr Enttr PUN J:
Erot he Hhe Ho
Value hoHhe
value value value Value
: frtor:
of
fhoud 0 of oF oE of
Diuition6:0 a'5
613 aS
be :s
qreater by
2o
han
tt
2eo. not
alowtd

Experiment
No.: Name:
Experiment

b A# dIe PROG
inbut PAM
prtnt float Flock sCert DIv
value ta't Exb oITH
(F" (inbut(inbut a la,
20, b): (OMAMENIT
Asserhon from ero
"ntr("Enter Oivis S
he ion hould
Ertot: Con Error
the the soe be
fe alue value Otecier
oiuision
ot of than
b;) a') h o PageNo. : Date :

7eto
!
not
cllouotd

You might also like