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

IOT Lab Manual

Uploaded by

Koolknight M05
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
0% found this document useful (0 votes)
29 views

IOT Lab Manual

Uploaded by

Koolknight M05
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
You are on page 1/ 21
on CI CTICTI [Ran Some Fython Progee = ial Pe reun ‘to Reod your name and prick ello rrassage REN Name pets [name = Cnpect(* Please Enlew Youn Name -Heve : In) | Prfat ( Hotto “-+name) Is Progaam te Yead-koo num bars and pict thePs Suro, | cle erence iprodust end deveston. i | Prat Certo Levit ambos") [nun =Eopeckt)— , peice ( “erter Socsnel Number") lnuma.= Enpertt) Ipviirt (OEE REI HH ERED fat(“ Sum of Geeonumbers bs 3 + Sts (Bot (purl | Cart(num) )) Prtot C“\Dehlerence of GGeer number, : “sts (Ebt(oumt)— | fot (aun 2)) i S 6 bed fa 2 +St0 (Prt (nunnt)€ fnt(ociin2))) el oO numbers BS: +Sbe ‘ou | \ Errt(num &) J) Iyart [te x KKK KKK KEL KEK Ir | Seichente Aspen) | _ Wordd= Sentonce -splet) | Love —Cocuntt =0 : fore Word fh words! | Wood connt = = 1 | chan act —courd += len(tosrd) anckonite Pract “Total numbers of Words @o tha 4 ae | toord Count) = i Ipfrt( “Total numbers of, revels th cts doncten Ce exclu. Z ane." -Chanaclin— Couct) TpSot( total oumbeys of Coovds On the Aentence I one ¢) Chanasken — Count roord - | Encludbug [ | Count 1) ! | LAY Perogsaumn to Aro of a Solected kpace [Weckan | pes > ek i os mat 4 Ee ae jonfle Tews Petre (8 FERRER KEKE KR KK") Priot( Select the shape that you. count tho Cal Culate Arectt) 2 ; Prfot (Ue g ex PE HN) Bint "ends Lhe. cote ofits the Rect | oe: tev) nie A Bean ie | { _ Lott = fik-(Ony patO) i L Print (“Enter the hotyht ofthe Rectangle &n | | meters") wate fiot(fhect)) Print (“The anea. of a gtven Reckoungle 2%, bokeh hegahty * Squane. preter ") Cobh el#f(chofte= =2) : PrSnt( “enten the Base value of be Tingle fn meters) bese= fit (Brputt)) PrSnt( “tnten the hetght opie Taxtangls €n retest) - befht= toH{fnpett)) “pret (The anea. of geven fefangls 05", Os Xba Roky hE f square: meters) Conbtnie. ete =3): na Rodeuk of cthe Cercle, fo ret ors") Fadeos Sent [Chpuctt |) Pieott The amen. of & oPven Cercle 25%, 3ly-% Nod tudevadius,'squcne meters ") Ceont€nue) } i I t “BD rogram to pink a comes oftnes cohere narme $ 0 vabieshasto be thpct from Srandand @opat Prtirt [ "Erten Youn name :") is name foputt) f Prat ("Enter bow mang terres you coast to pafist Yoon i Dame" = bat (Cpu )) fon & En Aangeln): paiat (name) [Prtrt( d) | ip Braet bo Handle Atvestoo by Boro erection II I Ember Numerator Value!) [Pum|= @rH{Poputt)) Proct( Enter Demom erator Value: ") lnuma= Ert(Popat)) eat =Aum! fanumn2 Prot (®The DEA eon of GBen Number lA :% vert) ctept KewodeistonGern __Patnt (1 Ditele by Jevo 2 howld not bo yro cre eet)aet Current Hime an Enlervals of 0 et I-fow & €n_trange (to)? H Seconds = teme -temel) | tocal_tome =tame -ckfme (Seconds) | Paint (thocal tome! 4 local terme) | teme rAterpl to) ae 4) [8 Popo Road a [ele and Past No of, toorels Cneadh eo [Pelet = open( *mudélen tect® iD) Lened = Kelol- P=0 et count = lon( lene -splett)) Prot (“here 4, €) "00 of ores" Count) prtot(* tr) wae (TCI) PEND, rom COG) I Get Bapect lao lew Sablchos @ Sublch on Cor@apond _ ee NPED a8 gpfo ee mfngS(CFalde) [swobtch2=35 lqpfo- Seterp( led!) pt +OUT, HEetPaL =o) [Gpto.setp(leda, 9p oor, EntéPal=o) [opto serup( Siatich |, qpeo-IN) es -Setrup (sweltcha, plo- In) |deo-P g loco led (everrt) | PF event== swltchl: I poate Weal True) : (3) Cc cudput( dls False) lef -Coent== switch: gpto. outpuct( led2 | True) | tre. Sleep(8) apt - outpect/lect>, Falie) add overt detect (siobtchl apfo RISING calla. aplo ‘ ck =qlow led , bounceteme = 1) Iapeo. a SE detect (Snlch! gpPo- RTESING jcoLibo- ck Raspber PI Remote combo! <[ tette> Rasp TL Romote Control <[bI> Shad hight Status : {Stab fF) host modepeedl + 1£ i +teme £5 <[b2> dorm Gatien = hitp:|[lecalhoge: ooo] elise ES | e[Boreos etaen actton= “http: || Local hed: Yooo |rredllecloft “> pes peck types "subrift!! Value ="Recl Led off > ___ |< Home> : [S[Badys " | boaddy= "" | pnae! = MIM EMutteeoortC) Ina! from'J=fromactdt Imafl['To! J =teaddyr [coal Pl Ciserbfect'J =! ttachment" | body = “(please fénd-the atttachrnerst Led = 1s [perez line =I | owed : (qefe-sotocamntngs False) lapeo- Settmocte (9p 70: BOARD) 10. Setup (rd) gpEo-00T) gp Setup ( per gpeo try) tu clo} Ser MaPl (data): reablattach (MiMeTexct Ubedy , ‘Plata ) omnes pp) ptmerr=open (elect) 56!) mage =MI ae 2.(atbachment-read(}) Sa ARcOL a racttach (emage) Semven = Srrrt lb - MTEC! Sentp-grnofl -Gomn!’, S84) Sewen+ starts () Sercven+ Loan (fromaday, Valscabosave 207) text=molfl.as— SbFnef) | Seven. Send mall (Fromadds) boaddr;tesct) I Sewven-qutte) clef Captere._trraget)? { ‘dockunteme- Stefterne. (MEmoge coos copturecl On Oetts efeHiele$ lolol of bole 4") Camera. Start preview) | time-step (5) | print (docta) fare. cafe (Ts ~JPq! ofocloda) Eee Stop_prewior0l) | tir€ ssloepl') _Bencl Mab (clocter) gplo-cectpect (Lect) 0) Camere. =plcamera.. pecameral) ; i | E i 1 Camervo srofatPon=180 Kamera aub— mode Souto! camera « brfaistress=ss. oe ICI IIS rs rages: C peice ek lads ) ° e. Hlth H) sate pace hele. gto pea ETI +t2me - Fagus sceetpect (lock, Low) Eeee tae /0°e!) 16 J Legh Slates Prom verre ploce Program fo R finport_trme finfort_Rye-GPTO a4 gpho from -flas_Emport_Pta 6 ve nclintennglacte Bnport_obtettme Opp = Fark (—-Pame — ~) gpto - stboaméngs( False) G plo. Setmode ( gplo. BOHRD) _ fed (=t3 aS “ Snofchl=3S- 2 . Z igpt-setup Cle ty p&o.00T, € ppt -setrp (SroPtch ty 201) le Status=“OFeh “Prapram fo Read [if flats Bor er fiyport_teme_ Bu “apt go plO » LSetmode, (peo: -BoBRD) fledtst3 | [pe slap (lel 9p OUT, Cetra =() .gplo- In) Vegi stints = Coree F alec lool (event) ¢ pooh “Entered tene") Global Légit-

You might also like