[Solved] Python len() method not returning value [duplicate]


You are doing it wrong. a.len() doesn’t exist. You should do

a = "Hello, World!"
print(len(a))

Read more about it here.

1

solved Python len() method not returning value [duplicate]