How to Access Values (Characters and Substrings) in Strings : Slice : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Slice »

 

How to Access Values (Characters and Substrings) in Strings


aString = 'Hello World!'
print aString[0]
print aString[1:5]
print aString[6:]



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Slice