Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Getting started with python
Search
Earvin Gemenez
April 12, 2014
Programming
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Getting started with python
durianpy presentation
Earvin Gemenez
April 12, 2014
Transcript
42 slides
Getting started with Python by Earvin
Who uses Python?
All the cool kids do!
None
What is Python?
Python language • got the name from Monty Python’s Flying
Circus • Multi-paradigm programming language • Object Oriented • Functional • Procedural • Reflective • implementation in December 1989 by Guido • in 2011, it is the 3rd most popular language in github
Python language • Open source • Fast ( PyPy )
• Batteries included language
Python is similar to… • Ruby • Perl • Java
• C
Python is different from… • Ruby • Perl • Java
• C
Checking if a list is empty. looks legit right?
It is but not idiomatic
Writing idiomatic python 'There should be one-- and preferably only
one --obvious way to do it’ from `The zen of python` by Tim Peters
formatting: PEP8 http://legacy.python.org/dev/peps/pep-0008/
None
is_required:
Bad Python Practice!
Bad Python Practice
None
Fixed Python Practice!
Hello Python Core concept? Whitespace!!
Indenting Code • have no explicit begin or end! •
No curly braces to mark where the function starts and stops • The only delimiter is a colon (:) and the indention of the code itself
None
Philosophy of Core Devs • Conservative growth • Aim for
a simple implementation • “We read Knuth so you don’t have to”
15 of cool things you can do with python (I
expect some applause here…-____-‘ )
#1: You can run it anywhere! • Linux • Mac
OS X • Windows • Solaris • HP-UX • OS/2 • Android OS • JVM • .NET • FreeBSD • BSD (and some other BSD) https://www.python.org/downloads/
#2 learn it fast • Easy to learn but very
powerful • for experienced or beginner developers (doesn’t matter) • get up to speed in days (not months/years)
[Numbers, Strings, Basic operators,] ! *Note: Programmers lie frequently about
being math geniuses when they really aren’t.
#3: Numbers
#4 Basic operators
Q: How did the programmer die in the shower? AHA
jokes! A: He read the shampoo bottle instructions: Lather. Rinse. Repeat.
#5 Strings
#6 Formatting strings #7 Things with strings
#8 List, #9 Tuples • List are mutable • Tuples
are not mutable • List comprehension
#9 Functional programming https://docs.python.org/2/library/functions.html
#10 Generators A billion iterations for a generator is Nothing!
! - pydanny
None
#11 Dictionaries Mutable key/value objects
#12 Isolate Environments
#13 Work with JSON import json
#15: Serve the web I know everyone likes this part.
[makes me sad :’( though]
And many many many more web frameworks…
End la Earvin Gemenez @tomomoii
More Decks by Earvin Gemenez
See All by Earvin Gemenez
Rapid Prototyping
tomomoi
0
98
DurianPy
tomomoi
0
78
Other Decks in Programming
See All in Programming
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
150
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
はじめてのPLATEAU
nokonoko1203
1
670
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
130
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
450
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
110
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
1.2k
将来の標準フォーマッター?ktfmtを深堀る
t45k
1
250
はじめてのKubernetesコントリビューション
nasa9084
0
330
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
3k
Are puppies a ranking factor?
jonoalderson
2
4.2k
Abbi's Birthday
coloredviolet
5
11k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Between Models and Reality
mayunak
4
610
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
410
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
680
The SEO Collaboration Effect
kristinabergwall1
1
630
The Pragmatic Product Professional
lauravandoore
37
7.5k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k