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
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
GoLab2025 Recap
kuro_kurorrr
0
790
Developing static sites with Ruby
okuramasafumi
0
340
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
210
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
8
3.5k
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
150
[AI Engineering Summit Tokyo 2025] LLMは計画業務のゲームチェンジャーか? 最適化業務における活⽤の可能性と限界
terryu16
1
140
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.4k
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
300
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
130
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
570
Deno Tunnel を使ってみた話
kamekyame
0
280
愛される翻訳の秘訣
kishikawakatsumi
3
360
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
39
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
54
48k
Technical Leadership for Architectural Decision Making
baasie
0
200
Discover your Explorer Soul
emna__ayadi
2
1k
Become a Pro
speakerdeck
PRO
31
5.8k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
32
Color Theory Basics | Prateek | Gurzu
gurzu
0
160
Navigating Team Friction
lara
191
16k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
180
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
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