Python Python Basics (2015) Letter Game App Letter Game Introduction

Siddharth Pande
Siddharth Pande
7,584 Points

why is len(list......is used instead of just len(string....?

why is len(list(string......is used instead of just len(string....?

1 Answer

len(list(string we are looking for the length of the string within a list so the string is contained in a list. Whereas len(string we are just looking for the length of a string so the string is self contained if that makes any sense. Still learning myself I hope this is helpful.