Start | kunskapsmatris
 
Enkla exempel
print
input

plugga mer
Matematik
C=A+B
A and B

plugga mer
Logik
and or
not

plugga mer
Villkor
ifsatser
match

plugga mer
Loopar
for
while

plugga mer
Funktioner
def
return

plugga mer
Datatyper
int()
float()

plugga mer
Strängar
str()
format()

plugga mer
List
[ 0, 1, 2]
[[1,2],[2,3]]

plugga mer
Tupler
(1, 2, 3)
(a,b)=(1,2)

plugga mer
Dictionary
{"x":10,"y":10}
{"i":1,"L":[2]}

plugga mer
Set
{0,1,2,3}
{"röd","grön"}

plugga mer
Filhantering
open
readline

plugga mer
Undantag
try
except

plugga mer
Klasser
class:
__init__

plugga mer
Funktioner2
variabelt antal
argument

plugga mer
Generator(er)
x for x in
yield

plugga mer
Iterator(er)
__iter__
__next__

plugga mer
JSON Dictionary
JSON -fil till
dictionary

plugga mer
Dunder
Klasser
dundermetoder

plugga mer
Arv
Klasser
arv

plugga mer
15.774011611938 ms