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

[ad_1]

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

[ad_2]

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