almost 6 years ago
Python does not support a character type treated as strings of length 1, thus also consider a substring.
To access substrings, use the square brackets for slicing along with the index or indices to obtain your substring. For example
var1 = 'Hello World!'
var2 = "Python Programming"
print "var1: ", var1
print "var2[1:5]: ", var2[1:5]
When the above code is executed, it produces the following result
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using