1 / 7

Python Baby

A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. -Geeky Quote-. Python Baby. Learning Python. Python are urmatoarele avantaje: *limbaj interpretat *usor de scris

pearly
Download Presentation

Python Baby

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. -Geeky Quote- Python Baby

  2. Learning Python Python are urmatoarele avantaje: *limbaj interpretat *usor de scris *multe clase si biblioteci, o groaza de api-uri *flexibil *intuitiv  *documentatie stufoasa *nume cool *cod curat Dezavantaje *It's a little on the slow side *Nu are nici un ide ca lumea. Eclipse is the best so far!

  3. Liste Tupluri: liste statice care nu pot fi modificate a=(d,b,c)‏ Liste:liste simple  a=[d,b,c] Dictionare: face un cuplaj intre 2 seturi de cuvinte. Apelul e o(log(n)) pe querry a= {coca:cola,ana:mere,windows:bad};

  4.  Clasele Clasele au avantajele fata de clasele din c++ sau java: *sunt usor de scris class a     va_fi_admin=None; *variabilele sunt referinte,deci     *NU PREA AVEM NEVOIE DE DESTRUCTOR     *GOT RID OF THAT NASTY SEGFAULT     *POT SA MA DECID MAI INCOLO CE E O VARIABILA=FLEXIBILITATE++

  5. Flexibilitate is cool! Class a     l=[] b=a(); c=a(); b.l.append("ceva"); c.l.append(5);

  6. Easy coding- And it's fast! S=[j for j in range(2,1000) if len([i for i in range(2,j - 1) if j % i == 0])==0]; -numerele prime! Cel mai bun mod de a concatena stringuri in python: def method6(): return ''.join([`num` for num in xrange(loop_count)])‏

  7. Surse de "inspiratie" -Google Code Jam-faci filtru dupa python si sunt niste useri destul de buni -Sursele open-source, api-uri si Google. -Dive into Python

More Related