String wählen Sie die ersten 2 Zeichen Python aus
t = "your string"
t[:2]
TheLonelyWolf
t = "your string"
t[:2]
characters = 4
string = "This is a string"
print(string[:characters])
#output: 'This'
string = "Hello world"
string[:3] # -> Hel