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) )
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) )