Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Python basics
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
b4d
November 09, 2016
Programming
0
49
Python basics
Course held at National Institute of Chemistry in Ljubljana, 2016.
b4d
November 09, 2016
Tweet
Share
More Decks by b4d
See All by b4d
ASLR - Address Space Layout Randomization
b4d
0
360
Other Decks in Programming
See All in Programming
Fluid Templating in TYPO3 14
s2b
0
130
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
Grafana:建立系統全知視角的捷徑
blueswen
0
320
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.7k
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
600
CSC307 Lecture 09
javiergs
PRO
1
830
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
170
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
Patterns of Patterns
denyspoltorak
0
1.4k
Basic Architectures
denyspoltorak
0
660
Package Management Learnings from Homebrew
mikemcquaid
0
200
CSC307 Lecture 07
javiergs
PRO
0
550
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
How to Ace a Technical Interview
jacobian
281
24k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
230
Done Done
chrislema
186
16k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
240
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
670
The Language of Interfaces
destraynor
162
26k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
36k
Technical Leadership for Architectural Decision Making
baasie
1
240
Game over? The fight for quality and originality in the time of robots
wayneb77
1
110
Transcript
INTRODUCTION PYTHON
GOALS OUR ? ‣HAVE FUN ‣SAVE TIME ‣DO MAGIC
THERE HOW TO GET ? ‣TIMETABLE ‣HOMEWORK ‣DURATION
None
print “Hello world” PYTHON 01000001 01000111 00001001 01100011 01100001 01000010
01001101 00111011 11010110 01000101 00000111 10101010 00011011 11000100 00100001 01101100 00000001 10010000 00000101 00000000 10101010 10001111 … BINARY CODE (FAKE)
PYTHON WHAT IS ? ‣OPEN ‣FREE ‣EASY*
DIVE INTO SLIDES ARE BORING
None
None
INTRODUCTION PYTHON PART TWO
VARIABLES SPREMENLJIVKE
BOOLEAN a = True b = False BOOLEAN
NUMBERS a = 10 b = 10.2 INTEGER FLOAT
STRINGS a = “niz znakov” INTEGER
OPERATORS ARITHMETIC
MATH OPERATIONS + - * / % **
STRINGS NIZI ZNAKOV
STRINGS a = “char \”escaping\” too” znak = “cats”[0] CHAR
ESCAPE INDEXING
“test”.lower() STRING FUNCTIONS “test”.upper() LOWERCASE UPPERCASE len(“test”) LENGTH
TRICKS VARIOUS
COMMENTS # comment 1 “”” comment 1 comment 2 “””
SINGLE LINE MULTI LINE
print “text” PRINTING print a STRING VARIABLE print “a” +
“b” CONCATENATION
“3”.int() TYPE CASTING str(3) STRING TO INT INT TO STRING
INTRODUCTION PYTHON PART THREE
raw_input(“Ime: ”) INPUT STRING
== != < > <= >= COMPARATORS
and or not BOOLEAN OPERATORS not and or PRIORITY
if x < 9: print “st. x je manjse od
9” elif x > 9: print “st. x je vecje od 9” else: print “st. x je enako 9” CONDITIONAL STATEMENTS
INTRODUCTION PYTHON PART FOUR
INTRODUCTION PYTHON PART FIVE
INTRODUCTION PYTHON PART SIX