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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
More Decks by Earvin Gemenez
See All by Earvin Gemenez
Rapid Prototyping
tomomoi
0
97
DurianPy
tomomoi
0
76
Other Decks in Programming
See All in Programming
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
290
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
SREの越境 / SRE Collaboration
y0hgi
2
310
contenteditable と日本語入力に向き合う
colorful12
0
200
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
ラッコキーワード サービス紹介資料
rakko
1
5.3M
Building Applications with DynamoDB
mza
96
7.2k
The Curious Case for Waylosing
cassininazir
1
570
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Site-Speed That Sticks
csswizardry
13
1.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Transcript
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