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, welcome back.
At practice.
And in this challenge, what we are going to do is we are going to develop a function that will be capable
of calculating the aerial for a given rectangle.
So these function will receive two parameters, two values, the height and the width of any rectangle
that you want to calculate its area.
All right.
And then the function, of course, is going to calculate and return.
Please note that the function will not print the area.
It will just return the calculated area.
And also, what I want you to notice is that the values may be of a floating point-I, but because we
want to make precise calculations for our rectangles area.
OK.
So the function should calculate and find out the area of this rectangle and then return it.
So that's actually what you have to do with the function itself.
And also, I want you to write the relevant main path where you are going to test how the function works.
So simply saying you are going to read two values from the user, you are going to ask the user to insert
two values in your main part of the height and the width.
And then you are going to call the function that is responsible for finding Ulvaeus area.
And once you find out the area, you are going to print the returned result outside the function right
inside of the main.
That's very important.
No, because the printing itself is going to happen outside of these function.
These function that you are going to create is simply responsible for finding out.
For calculating the area and then returning it.
It does not print anything to the screen.
So good luck with this exercise, guys.
I hope all these three actions are clear.
That's not a very long function.
Just a couple of lines of code.
Just make sure that you understand the type of the function, its name, what it receives, how with
calculates and what it returns.
And I'll see in the solutions video.
Good luck.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.