Beruflich Dokumente
Kultur Dokumente
## A sequence of characters.
## Declare string -
## Indexing --
-6 -5 -4 -3 -2 -1
P y t h o n
0 1 2 3 4 5
## Slicing --
slice = [begin:end:step]
runs from begin to end-1 with given step.
default values -
begin - 0
end - length of str
step - 1
## Membership operators
in , not in
## Comparision operators
>,<,>=,<=
these operators always check dictionary order(unicode) NOT LENGTH
a - 97 (bigger)
A - 67 (smaller)
## Equality operators
==, !=
## Difference bw == and is
== - if values are same (content comparision)
is - if both vars point to same obj (add/ref compresion)