Sorting Hat: A Python Tutorial Project

Not Python, eh? Are you sure? You could be great, you know, it’s all here in your head, and Python will help you on the way to greatness.

I'm working for a student club called Shandong University Students Online. As its name suggests, our main focus is web development. Every year we need to recruit new members from freshmen, however, most of them have no idea on programming, and we have to use crucio and imperio experience and patience to train them as real programmers.

That's the origin of Sorting Hat, an entry-level project which will lead you through basic concepts of Python programming. It's separated into 8 units, each of them is designed to be taught or self-taught in around two hours. I designed it to be easy to handle, advance gradually and with a gentle learning curve.

Here are the 8 units. You can download it from GitHub and use git checkout unitX to switch among units.

Note: This project uses Python 3 and is not compatible with Python 2.

  • unit1: input() and print(), if statement
  • unit2: functions, operators, for loop
  • unit3: data structure: list and dict
  • unit4: open files, array index
  • unit5: use import, JSON, list comprehension
  • unit6: manage packages, handle and define exceptions
  • unit7: object-oriented programming
  • unit8: Tkinter GUI, thread

After the eight units, you'll feel comfortable writing code in Python and be capable to call yourself a programmer, provided that you have followed the tutorial attentively.

Slytherin!

(Yes, that's a true Pythonista!)

If you encounter any difficulty, please leave your comment below. Start learning Python today!

Leave your comment

Alfred King  

Great job! Might help when catching up python recently ~

gegdiurI  

[url=http://onlinevigra.com/]best canadian online pharmacy[/url] viagra oral were can i buy cialis

gwdFueni  

[url=http://vigraformen.com/]canadian pharmacy generic viagra[/url] buy cheap viagra buy cialis canada

nyyacelm  

[url=http://genericjojos.com/]canada drugs direct[/url] viagra online pharmacy buy generic cialis online

grsvoido  

[url=http://buyjeacialonline.com/]canada drugs review[/url] viagra substitute cialis buy online

rghfelia  

[url=http://cheapnowaaaa.com/]where to buy cialis online[/url] cheap viagra canada canada drugs

brhGuemi  

[url=http://buyviagrawww.com/]my canadian pharmacy[/url] generic viagra online online canadian pharmacy

hrfawabs  

[url=http://viagrageneric7k.com/]canada pharmacy online[/url] 100mg viagra canadian pharmacy cialis

wgStava  

[url=http://genericcilaken.com/]where to buy cialis[/url] mail order viagra canadian pharmacy review

AustKitte  

Para Que Sirve El Medicamento Cialis How Much Cephalexin For Canines [url=http://viaabuy.com]buy viagra online[/url] Acheter Kamagra France Viagra 25 Prix En Limoges Viagra Through Mail

rbsWrige  

[url=http://onlinewwwmen.com/]buy generic viagra online[/url] viagra reviews legit online pharmacy

fbgCoimb  

[url=http://onlinesslviaqra.com/]canadian pharmacy online[/url] order viagra online canadian pharmacy review

tghdiurI  

[url=http://fastpaydayloansi.com/]fast cash advance payday loan[/url] payday loans no credit check online 1 cash advance

btgFueni  

[url=http://goapplynowa.com/]check payday loan[/url] home loans people bad credit quick pay loan

tghacelm  

[url=http://applygoleader.com/]cash advance same day[/url] irs tax debt relief online payday loans fast

grsvoido  

[url=http://applygousavx.com/]online instant payday loans[/url] loan cash bad credit quick loans

evsGuemi  

[url=http://loandkc.com/]pay day loan michigan[/url] az laws payday loans pay day advance no fax

byjfelia  

[url=http://leaderapply.com/]easy no fax payday loan[/url] cash instant loan fast cash wisconsin

fsaawabs  

[url=http://myleaderusa.com/]cash advances no credit[/url] payday loans no credit quick small loans

nniStava  

[url=http://mobilleaderapply.com/]paydayloans no faxing[/url] bad credit non payday loans san antonio payday loan

gwfWrige  

[url=http://applygopayday.com/]ok payday loans[/url] are online payday loans payday loans now

hryCoimb  

[url=http://greencheckngo.com/]get fast loan[/url] applying for payday loans tennessee payday loan

hasdiurI  

[url=http://jslpaydayloans.com/]bad credit cash advance loan[/url] personal installment loan cash advance instant approval

jnbFueni  

[url=http://viponlinepaydayloans.com/]check cash advance[/url] online loans no credit check no credit check cash loans

lopacelm  

[url=http://cashpaydayloansi.com/]borow money[/url] a payday loan lender www payday loan com

bgdvoido  

[url=http://wwwonlinepaydayloans.com/]payday laon[/url] fresno pay day advance online

hhjfelia  

[url=http://hopcashpaydayloans.com/]cash now payday advance[/url] credit counselling cash online now

sexGuemi  

[url=http://willpaydayloans.com/]cash advance[/url] loans platinum cash advance

gsdawabs  

[url=http://usconstitutionof1777.com/]cash advance milwaukee[/url] personal loans no faxing no faxing cash advance

jjaiStava  

[url=http://paydayiloans.com/]fast money loans[/url] a payday loan no faxing fast cash no faxing

llaWrige  

[url=http://joonlinepaydayloans.com/]instant quick cash advance loan[/url] loans now quick cash online

tvsCoimb  

[url=http://jojoloanspayday.com/]how to get cash fast[/url] loan cash quick money loan

fbsacelm  

[url=http://canadadrugpharmacywhik.com/]online pharmacy canada[/url] natural alternative to viagra canadian online pharmacy

nsfhvoido  

[url=http://canadianonlinepharmacyrgby.com/]online canadian pharmacy[/url] viagra pills canadian pharmacy online

jtdfelia  

[url=http://canadadrugsonlinergla.com/]п»ї[/url] discount viagra online online pharmacy canada

bdcdiurI  

[url=http://onlinepharmacybvyk.com/]precription drugs from canada[/url] buy viagra without prescription best online pharmacy

fbgFueni  

[url=http://canadianpharmacyonlinesrvh.com/]canadian pharmacy[/url] viagra buy online pharmacy

rgsWrige  

[url=http://canadadrugsrwdi.com/]canadian pharmacy online[/url] cheap viagra canada drugs online

bfxCoimb  

[url=http://canadaonlinepharmacyhtik.com/]best canadian pharmacy[/url] how viagra works cvs online pharmacy

jtdStava  

[url=http://drugstoresydik.com/]canadian pharmacy ratings[/url] viagra soft precription drugs from canada

bfsGuemi  

[url=http://drugstoresydik.com/]canadian pharmacy king[/url] viagra cheapest canadian pharmacies online

fbaphimb  

[url=http://drugstorepharmacyxerh.com/]online pharmacy canada[/url] buy cheap generic viagra online pharmacy school

bfaGer  

[url=http://pharmacystorefvnh.com/]online pharmacy reviews[/url] buy cheap generic viagra legit online pharmacy

fbhawabs  

[url=http://erectiledysfunctionnfsc.com/]online prescription[/url] low price viagra reputable canadian pharmacy

jmiacelm  

[url=http://viagrageneric7k.com/]best generic viagra forum[/url] purchase cialis back generic guarantee money viagra

bfsvoido  

[url=http://vigraformen.com/]buy generic cialis online[/url] cialis no prescription canadian pharmacy review

bsffelia  

[url=http://cheapviagrafasg.com/]viagra cheap pills[/url] cialis without a prescription cheap viagra usa

bddStava  

[url=http://onlinevigra.com/]buy viagra online usa[/url] buy cheap viagra buy viagra online legally

mmoWrige  

[url=http://buyviagrawww.com/]buy viagra australia[/url] buying viagra viagra best buy legit

bbxCoimb  

[url=http://onlineviagrayvrj.com/]viagra pills online[/url] viagra sale buying viagra online reviews

olodiurI  

[url=http://cheapciljrd.com/]cheap generic cialis 60 mg[/url] cialis pills cheap online cialis

bdxFueni  

[url=http://buycildjea.com/]buy cialis now[/url] buy generic viagra where to buy cialis cheap

nike air max  

I must express thanks to you just for rescuing me from this particular setting. Because of researching through the online world and coming across solutions which are not productive, I assumed my life was done. Existing without the presence of approaches to the problems you have fixed as a result of your main article content is a serious case, and those which could have adversely damaged my entire career if I had not come across your site. The understanding and kindness in handling all areas was important. I'm not sure what I would've done if I had not come upon such a subject like this. It's possible to at this point relish my future. Thanks very much for the reliable and sensible guide. I will not be reluctant to refer the sites to anybody who should receive guidance on this matter.

nitacelm  

[url=http://onlinewwwmen.com/]best place to buy generic viagra online[/url] cialis for sale viagra online india

mmivoido  

[url=http://onlinecilkrd.com/]canadian pharmacy online cialis[/url] cialis brand buy cialis 5mg online

hhaGuemi  

[url=http://genericcilaken.com/]generic cialis from canada[/url] no prescription cialis generic cialis tadalafil 40 mg

gttfelia  

[url=http://greengenericjen.com/]is there a generic drug for cialis or viagra[/url] tadalafil tablets generic viagra brands

nzwawabs  

[url=http://buyjeacialonline.com/]overnight cialis online[/url] online pharmacy viagra how to purchase cialis online

mmoStava  

[url=http://genericjojos.com/]online pharmacy generic viagra[/url] best generic viagra viagra vs generic

Blanewruoewiu  

Now read this 3 [url=http://blablabla11113.com]blablabla11113 now[/url] !

blablabla11113 now

http://blablabla11113.com

lllWrige  

[url=http://cheapnowaaaa.com/]cheap viagra in india[/url] viagra patent cheap viagra india

qfuCoimb  

[url=http://onlinesslviaqra.com/]best place to buy viagra online 2015[/url] discount viagra viagra online sales

byjdiurI  

[url=http://canadabuyeds.com/]buy viagra pills[/url] buy cheap cialis can you buy viagra online

jordan 4  

I precisely had to appreciate you yet again. I'm not certain the things that I would have used without the entire secrets contributed by you regarding my area. Entirely was a fearsome circumstance in my circumstances, however , discovering the specialised fashion you managed that forced me to cry with fulfillment. Now i am thankful for your support and even sincerely hope you find out what an amazing job you are always getting into educating the mediocre ones through the use of your site. I know that you've never come across all of us.

wxzFueni  

[url=http://cheapgogenvia.com/]cheap viagra india[/url] viagra professional cheap viagra tablets

bgdacelm  

[url=http://buyviagaraonline.com/#]buy viagra online quick delivery[/url] low cost viagra buy viagra online in usa

bbivoido  

[url=http://onlineviagriabuy.com/#]cialis online pharmacy reviews[/url] cialis tadalafil is it safe to buy cialis online

avtfelia  

[url=http://onlinevirgargeneric.com/#]online viagra reviews[/url] sublingual viagra is online viagra legitimate

btgGuemi  

[url=http://buyviagricxr.com/index.html]where to buy viagra[/url] canadian viagra buy viagra cheap