Suche senden
Hochladen
Python - Getting to the Essence - Points.com - Dave Park
•
1 gefällt mir
•
936 views
P
pointstechgeeks
Folgen
Intro to Python. Created by Dave Park at Points.com.
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 17
Empfohlen
PHP 5.3 And PHP 6 A Look Ahead
PHP 5.3 And PHP 6 A Look Ahead
thinkphp
using python module: doctest
using python module: doctest
mitnk
Lean & Mean Tokyo Cabinet Recipes (with Lua) - FutureRuby '09
Lean & Mean Tokyo Cabinet Recipes (with Lua) - FutureRuby '09
Ilya Grigorik
P4 2018 io_functions
P4 2018 io_functions
Prof. Wim Van Criekinge
Yapcasia2011 - Hello Embed Perl
Yapcasia2011 - Hello Embed Perl
Hideaki Ohno
P3 2018 python_regexes
P3 2018 python_regexes
Prof. Wim Van Criekinge
What we can learn from Rebol?
What we can learn from Rebol?
lichtkind
Kansai.pm 10周年記念 Plack/PSGI 入門
Kansai.pm 10周年記念 Plack/PSGI 入門
lestrrat
Weitere ähnliche Inhalte
Was ist angesagt?
Puppet Camp Paris 2015: Power of Puppet 4 (Beginner)
Puppet Camp Paris 2015: Power of Puppet 4 (Beginner)
Puppet
Perl 5.10
Perl 5.10
acme
Introduction to Modern Perl
Introduction to Modern Perl
Dave Cross
Advanced Perl Techniques
Advanced Perl Techniques
Dave Cross
IO Streams, Files and Directories
IO Streams, Files and Directories
Krasimir Berov (Красимир Беров)
Introduction to Perl
Introduction to Perl
Krasimir Berov (Красимир Беров)
Ruby 2.0
Ruby 2.0
Uģis Ozols
Programming Under Linux In Python
Programming Under Linux In Python
Marwan Osman
EuroPython 2017 - Bonono - Simple ETL in python 3.5+
EuroPython 2017 - Bonono - Simple ETL in python 3.5+
Romain Dorgueil
Programming in Computational Biology
Programming in Computational Biology
AtreyiB
The bones of a nice Python script
The bones of a nice Python script
saniac
Python and sysadmin I
Python and sysadmin I
Guixing Bai
How Xslate Works
How Xslate Works
Goro Fuji
Can you upgrade to Puppet 4.x? (Beginner) Can you upgrade to Puppet 4.x? (Beg...
Can you upgrade to Puppet 4.x? (Beginner) Can you upgrade to Puppet 4.x? (Beg...
Puppet
Petitparser at the Deep into Smalltalk School 2011
Petitparser at the Deep into Smalltalk School 2011
Tudor Girba
Power of Puppet 4
Power of Puppet 4
Martin Alfke
Python 3000
Python 3000
Bob Chao
Introduction to Perl - Day 1
Introduction to Perl - Day 1
Dave Cross
Perl Moderno
Perl Moderno
Tiago Peczenyj
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Romain Dorgueil
Was ist angesagt?
(20)
Puppet Camp Paris 2015: Power of Puppet 4 (Beginner)
Puppet Camp Paris 2015: Power of Puppet 4 (Beginner)
Perl 5.10
Perl 5.10
Introduction to Modern Perl
Introduction to Modern Perl
Advanced Perl Techniques
Advanced Perl Techniques
IO Streams, Files and Directories
IO Streams, Files and Directories
Introduction to Perl
Introduction to Perl
Ruby 2.0
Ruby 2.0
Programming Under Linux In Python
Programming Under Linux In Python
EuroPython 2017 - Bonono - Simple ETL in python 3.5+
EuroPython 2017 - Bonono - Simple ETL in python 3.5+
Programming in Computational Biology
Programming in Computational Biology
The bones of a nice Python script
The bones of a nice Python script
Python and sysadmin I
Python and sysadmin I
How Xslate Works
How Xslate Works
Can you upgrade to Puppet 4.x? (Beginner) Can you upgrade to Puppet 4.x? (Beg...
Can you upgrade to Puppet 4.x? (Beginner) Can you upgrade to Puppet 4.x? (Beg...
Petitparser at the Deep into Smalltalk School 2011
Petitparser at the Deep into Smalltalk School 2011
Power of Puppet 4
Power of Puppet 4
Python 3000
Python 3000
Introduction to Perl - Day 1
Introduction to Perl - Day 1
Perl Moderno
Perl Moderno
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Ähnlich wie Python - Getting to the Essence - Points.com - Dave Park
Ruby For Java Programmers
Ruby For Java Programmers
Mike Bowler
C to perl binding
C to perl binding
Shmuel Fomberg
Perl Presentation
Perl Presentation
Sopan Shewale
Javascript Primer
Javascript Primer
Adam Hepton
What's new in Perl 5.10?
What's new in Perl 5.10?
acme
Antlr V3
Antlr V3
guest5024494
The Kotlin Programming Language
The Kotlin Programming Language
intelliyole
Scala 2 + 2 > 4
Scala 2 + 2 > 4
Emil Vladev
Modern Perl
Modern Perl
Marcos Rebelo
Python scripting kick off
Python scripting kick off
Andrea Gangemi
Building Interpreters with PyPy
Building Interpreters with PyPy
Daniel Neuhäuser
Groovy Introduction - JAX Germany - 2008
Groovy Introduction - JAX Germany - 2008
Guillaume Laforge
Php Loop
Php Loop
lotlot
Design Patterns in Ruby
Design Patterns in Ruby
Aleksander Dąbrowski
02 Php Vars Op Control Etc
02 Php Vars Op Control Etc
Geshan Manandhar
Writing Apps the Google-y Way
Writing Apps the Google-y Way
Pamela Fox
Scala introduction
Scala introduction
Alf Kristian Støyle
Python 3000
Python 3000
Alexandro Colorado
Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009
Core Software Group
Embed--Basic PERL XS
Embed--Basic PERL XS
byterock
Ähnlich wie Python - Getting to the Essence - Points.com - Dave Park
(20)
Ruby For Java Programmers
Ruby For Java Programmers
C to perl binding
C to perl binding
Perl Presentation
Perl Presentation
Javascript Primer
Javascript Primer
What's new in Perl 5.10?
What's new in Perl 5.10?
Antlr V3
Antlr V3
The Kotlin Programming Language
The Kotlin Programming Language
Scala 2 + 2 > 4
Scala 2 + 2 > 4
Modern Perl
Modern Perl
Python scripting kick off
Python scripting kick off
Building Interpreters with PyPy
Building Interpreters with PyPy
Groovy Introduction - JAX Germany - 2008
Groovy Introduction - JAX Germany - 2008
Php Loop
Php Loop
Design Patterns in Ruby
Design Patterns in Ruby
02 Php Vars Op Control Etc
02 Php Vars Op Control Etc
Writing Apps the Google-y Way
Writing Apps the Google-y Way
Scala introduction
Scala introduction
Python 3000
Python 3000
Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009
Embed--Basic PERL XS
Embed--Basic PERL XS
Kürzlich hochgeladen
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
YounusS2
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Aijun Zhang
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
Jamie (Taka) Wang
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
Precisely
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
DianaGray10
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
dgelyza
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Commit University
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
SkyPlanner
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
David Newbury
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
Tarek Kalaji
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
Matsuo Lab
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
shyamraj55
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024
D Cloud Solutions
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
Adtran
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
Daniel Santiago Silva Capera
20150722 - AGV
20150722 - AGV
Jamie (Taka) Wang
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
Seth Reyes
20230104 - machine vision
20230104 - machine vision
Jamie (Taka) Wang
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
IES VE
Kürzlich hochgeladen
(20)
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
20150722 - AGV
20150722 - AGV
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
20230104 - machine vision
20230104 - machine vision
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Python - Getting to the Essence - Points.com - Dave Park
1.
Python Intro Created
by Dave Park Copyright 2011 Points International, Ltd. python >>> 'Getting to the essence of your code.'
2.
lost in a
sea of layers...
3.
>>> "Where's the
good stuff?" >>> "Ceremony vs. Essence"
4.
Sorting Lists -
Java public static void sortByLastTrade(List<Stock> portfolio) { Comparator<Stock> c = new Comparator<Stock>() { public int compare(Stock o1, Stock o2) { return o1.getLastTrade() - o2.getLastTrade(); } }; Collections.sort(portfolio, c); } public static void sortByOpen(List<Stock> portfolio) { Comparator<Stock> c = new Comparator<Stock>() { public int compare(Stock o1, Stock o2) { return o1.getOpen() - o2.getOpen(); } }; Collections.sort(portfolio, c); }
5.
Sorting Lists -
Python >>> portfolio_tuple = [ ('APPL', 203.25, 204.50), ('MSFT', 29.12, 29.08), ('ORCL', 21.90, 21.83) ] >>> sorted(portfolio_tuple, key=lambda stock: stock[1]) # sort by last Trade [('ORCL', 21.90, 21.83), ('MSFT', 29.12, 29.08), ('APPL', 203.25, 204.50)] >>> sorted(portfolio_tuple, key=lambda stock: stock[2]) # sort by last Open [('ORCL', 21.90, 21.83), ('MSFT', 29.12, 29.08), ('APPL', 203.25, 204.50)]
6.
>>> ['indents', 'lists',
'dictionaries', 'objects', 'etc...']
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
Hinweis der Redaktion
A tuple is a heterogeneous immutable list
controversy!