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
97
DurianPy
tomomoi
0
78
Other Decks in Programming
See All in Programming
GraphQL の onError と Nullability のこれから
quramy
0
220
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
150
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
280
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.1k
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
410
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
110
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
250
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
250
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
330
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Balancing Empowerment & Direction
lara
6
1.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
300
Amusing Abliteration
ianozsvald
1
390
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
630
Unsuck your backbone
ammeep
672
58k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
530
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
570
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k