Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
All right.
So welcome back goes through another challenge, and this challenge is actually pretty similar to the
previous one.
What we are going to do here is simply to write the recursive function that will receive a number of
some Nahm, just like we've done previously.
But now, instead of finding out what will be the sum of all digits in a given number, what we are
going to find out is what is the total number of digits in these given numbers.
So, for example, if we have a Nahm as 67, as we said previously.
So what the recursive function is going to do now is simply to return the total amount of digits.
So if we know that sixty seven consists of six and seven, which is just two digits.
So the result of this function, the return value is going to be two.
And as the second example that we use previously, we have Nahmias, nine thousand five hundred thirty
one.
So how you calculate the total amount of digits.
You simply find out why.
How.
How many digits of this number has.
Okay.
Just by using this approach that we've shown in the previous challenge, just by dividing by 10 on every,
let's say, a recursive call and then taking just one digit and using some are some mechanism that we
know.
We take it into account.
So previously we took the whole digit into account.
We summed it up.
And now we simply are going probably to use some counter.
But I'll leave it to you guys.
Okay.
So take your time to think about it.
It's pretty similar to the previous exercise, but it also are kind of different.
So take your time.
Think of the solution and I'll see you in the Solutions video.
Good luck, guys.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.