Posted on:

25 Dec 2021

0

Solution 4 also takes into account the spaces given in the name?

name = "Tom Fisk"
here name actually contains 7 characters but according to the solution, it would calculate 8.

So, perhaps ?
name_len = len(name) - name.count(' ')

0 answers ( 0 marked as helpful)

Submit an answer