Built-in Data Structures: Strings
Positional operators
Index string[i]
Slice string[i:j]
Length len(string)
Formatting (extended printf notation)
“This is %s %.1f” % (“python”, 2.2)
foo= “This is %s %.1f” % (“python”, 2.2)
print foo
This is python 2.2
foo=2
name = “python”
ver = 2.2
Previous slide
Next slide
Back to first slide
View graphic version