0

do spaces count as values in a list ?

eg str = "I Love Python" print[7] >>> P >>>

27th Nov 2019, 5:16 AM
Emmanuel Munyite
Emmanuel Munyite - avatar
3 odpowiedzi
0
try this function it count spaces too number = len("nnn ") print (number) #it count spaces
28th Nov 2019, 7:54 PM
turab nomanbhai
turab nomanbhai - avatar
0
Yes spaces are considered as values as well moreso in python, not sure of other languages.
16th Jan 2022, 5:40 AM
Norbert Oketch
Norbert Oketch - avatar