Download Python Important notes and more Cheat Sheet Programming Languages in PDF only on Docsity!
a Cons eres] Chaflr = Shing Shing. is v0 data, fybe in Dy thon Sil ib Gn In quotes : i Single quualid stings —> a. = " Hawt => he "Hay" ‘ : ay az tt a int Shing Glues | i lag / bat ofthe SHino- (ohsiden the. following “hung i mom - | Hlolr lr _>k 25 ¥ Ol 23.4 Cay CHE EDEY Te indenting Ahad from_o lag 1) in Python: In #tdex + sie 0 sing, we “se de — in: d y . fo Housing Syston gl = name [int shat * ind end J >) « fivet tinder infladed > daat Sedo ic tat nuded —— bl fo: 3] yetuwng “Hon -» Choradirs fiam oto 3 — AAG\2 3) petutns “or charads fom 1 3-— Wien -—Neqaibuve Induces Com also be upd — how in te” awee ale. -1 (erwsponds to — the (ung) inlet, $b (Negihen) eta provide 0 shi td "| | slice Sikh this os pol of auf ____ Wotd = ama Wad ze ae = _!mzn' | | Othe advanced sticinp techniques wotd =” amasung" OV “] word [3] —>" word [0:7] > “amagirg" ulbid fo. ] —> eid [0:3] — ‘amngirg Sing Fut tans Com. of the mestty uscd er amo." manipula” Thi ei pie Lhe a buing lem [+ Hang" | —_ foals 5 | 2] Gleung. endswith (“xry") —> This uncon ils coh Hua — Hho” vartolls sume ends with Phe otung * sry" 6 tot if stein a “Hanty" , it veh teug le er Since —Hasuy ends “with vey al Shing - (ount {c) = (owls the +otal rwnlex of OLcukynte_. a ony chakacter nena 2 “Thi fa dusouechon lapitalines the just of m gia sting - Ht