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
So this challenge is very similar to the previous one, except two minor changes.
The first one is that now we want to read the numbers from the user to read the digits instead of just
initializing these array that we've created previously.
You already know how you can do it, right?
Simply by declaring an array of size, let's say seven, as we've done previously.
And then just using the input function to read every digit from the user and put it inside this array.
And also another change is that instead of finding the maximum value like we've done in the previous
challenge, we are going to find and print the index, the actual location of the maximum value in these
given array.
So we are not interested in the value itself.
Like in this example is just nine, but rather we are interested in leads location with where it resides
within this array, its index, which in this case will be just four.
Right.
The index of the maximum value, the maximum value is nine.
But its index is just four.
So once again, previously we found down the maximum value.
And now we want to print out to the screen the index of that value.
A similar exercise with the digits from your phone number, except for the two changes we've just added.
So let's give it a try, shall we?
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.