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
47
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
320
Other Decks in Programming
See All in Programming
Hypervel - A Coroutine Framework for Laravel Artisans
albertcht
1
130
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
360
Agentic Coding: The Future of Software Development with Agents
mitsuhiko
0
100
スタートアップの急成長を支えるプラットフォームエンジニアリングと組織戦略
sutochin26
1
5.8k
プロダクト志向ってなんなんだろうね
righttouch
PRO
0
190
「Cursor/Devin全社導入の理想と現実」のその後
saitoryc
0
820
Team operations that are not burdened by SRE
kazatohiei
1
310
チームで開発し事業を加速するための"良い"設計の考え方 @ サポーターズCoLab 2025-07-08
agatan
1
420
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
220
PHPでWebSocketサーバーを実装しよう2025
kubotak
0
290
Blazing Fast UI Development with Compose Hot Reload (droidcon New York 2025)
zsmb
1
290
Goで作る、開発・CI環境
sin392
0
230
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
The Language of Interfaces
destraynor
158
25k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Side Projects
sachag
455
42k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Making Projects Easy
brettharned
116
6.3k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
RailsConf 2023
tenderlove
30
1.1k
Raft: Consensus for Rubyists
vanstee
140
7k
KATA
mclloyd
30
14k
How to Ace a Technical Interview
jacobian
278
23k
Balancing Empowerment & Direction
lara
1
430
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