By Nicholas Brown
Determining the length of a Python string can be done using the ‘len()’ function as shown below using the variable ‘test1’ as an example:
test1 = "hey"
print( len(test1) )
Kompulsa is a technology resource aimed at helping you to understand your world. Topics covered include electronics, science, blockchain, engineering, and much more!
Copyright © 2023 - Kompulsa.com.