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
pyvo-lt.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Honza Javorek
June 16, 2018
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
pyvo-lt.pdf
Honza Javorek
June 16, 2018
More Decks by Honza Javorek
See All by Honza Javorek
Týden pro digitální Česko: Představení junior.guru
honzajavorek
0
150
Junior jako investice: Proč je mít v týmu a jak je zaučovat
honzajavorek
0
480
We Are The Robots
honzajavorek
0
400
How and why I work on junior.guru
honzajavorek
0
230
Jak vzniká junior.guru: Otevřený „startup“ v jednom člověku
honzajavorek
0
230
Založeno 2007
honzajavorek
0
180
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
810
Keynote: 12 lessons learned from 9 years of community work
honzajavorek
0
300
12 lessons learned from 9 years of community work
honzajavorek
0
470
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Done Done
chrislema
187
17k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
59k
4 Signs Your Business is Dying
shpigford
187
23k
ラッコキーワード サービス紹介資料
rakko
3
5.4M
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
530
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
My Coaching Mixtape
mlcsv
0
360
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
430
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Transcript
Format
name = input('Name: ')
print('Hello ', end='') print(name, end='') print('!')
print('Hello ' + name + '!')
year = 2018 print('Happy new year ' + year +
'!')
TypeError: must be str, not int
'Happy new year %d!' % (year,)
'Your name is %s' % (name,) 'Hello %s and %s!'
% (n1, n2) 'Happy new year %d!' % (year,)
'Happy new year %s' % (year,) 'pi = %d' %
(3.14,)
'%10s' % (3.14,) ' 3.14'
C sprintf()
print('Hello {0}!'.format(name))
print(('Hello {0}! {0} is a nice' 'name.').format(name))
print('Hello {} and {}!'.format(n1, n2))
'{:>10}'.format(3.14) ' 3.14'
name = { 'first': 'Honza', 'last': 'Javorek', } print('Hi {first}
{last}!'.format(**name))
print('Hi {first} {last}!'.format( first='Honza', last='Javorek', ))
a = { 'street': 'Ostrovského', 'no': '38a', } print('{a[street]} {a[no]}'.format(a=a))
c = [50.0678996, 14.3953814] print('GPS: {c[0]};{c[1]}'.format(c=c))
from datetime import datetime d = datetime(2018, 6, 20, 19,
0) print('{:%Y-%m-%d %H:%M}'.format(d))
pyformat.info
address = { 'street': 'Ostrovského', 'no': '38a', } coords =
[50.0678996, 14.3953814] text = ('The address is: ' '{address[street]}{address[no]}' '\n' 'GPS: {coords[0]};' '{coords[1]}').format(address=address, coords=coords) print(text)
text = ( 'The address is: ' '{address[street]}{address[no]}' '\n' 'GPS:
{coords[0]};' '{coords[1]}' ).format( address=address, coords=coords ) print(text)
print(( 'The address is: ' '{address[street]}{address[no]}\n' 'GPS: {coords[0]};{coords[1]}').format( address=address, coords=coords
)))))))!:!)!*&^%^FUUUUUUUUUU .format( address=address, coords=coords )
name = 'Honza' year = 2018 print(f'Hello {name}!') print(f'Happy {year}!')
name = 'Honza' year = 2018 print(f'Hello {name.upper()}!') print(f'Next: {year
+ 1}')
theend = dict( cs='konec', en='the end', fr='el fin', ) print(f"{theend['cs'].upper()}")