0% found this document useful (0 votes)
20 views3 pages

Python Notes Week 2

week 2 notes

Uploaded by

01surajkr
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)
20 views3 pages

Python Notes Week 2

week 2 notes

Uploaded by

01surajkr
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
2 Bf wr ria s Week 2 Poaries OF Dates Youva |__Vayjables Loo * always wre yariables pame xelf explaingery + Uge comments +o leave message for yourself -to_undergtant . + Variables aye just ke container | which gtores Some value. MeTAETE + w e e doje type whenever we want. +— Atte When you divide ain type & \jaxiable then i+ become Floag- yw “There ave Some _icey words Which are pre-defined ih python . We Cann’t ure jf as QQ variables Name. | He “There cre geome ule, +o clefine _ OA Vamnable names :— “Tt canin't gtertg with number buf humberg are ured after calphab gle, r Noo OB oe a Ee can statis with, -aPhbeh and underscore + a [+ variables hames are CONC = Reg post [Using del ean delete ven, ey - ded x at out > error 2 are jgnot defined HE shorthand operator ae = Egi- Th Coung =O Coup t= 4 Counf += L oak pring (count ) ouf > 2 + in operefor Vaing the In operctor we will find a ; ; ‘ visouble cl =t0_pavticular Atzing or_not= ao [Cn > prine (<6 Hebf ” fin “wb oat eco yl LT Sq twtress M of > “ue Escape Characters =——SS—=— quoter. - =f you_war to enter o @nd__tupe of- quote or double g e ji votes Ingide the atzing then use {v_) to prin “the quotes - beth the Atving. Sgi— pring (‘Hello , THN 2 7 Oust —> Hello, Tt’s a beaqubifud doy. ° Tf you wang to prinh game Sto In here ine. tating one pring the _use (\h ). sim pring (Hello \n world 1”) ouf —7 Hello Wortal'! [ * TF we dévide stoi "a in_mwkeHp be fine_then we mut Ture (46 7) triple qhotes to Store thay aitzhing.

You might also like