Addition
+
’ ’ + ’ ’ = ’ ’
Konkatenering
type(’ ’)
Class sträng (str)
Class Bool / boolean
type(True)
Dvs ger sanningsvärde true/false
type(15)
Integer / heltal
type(15.67)
class float / floating point number (flyttal, representerar decimaltal)
type([])
class list (lista)
Kan innehålla vilka data-typer som helst
x=[1, 2, 3]
print(x[1])
2
(Listans index börjar alltid från 0)