⊗pyPmUFPrm 208 of 208 menu

Workshop on working with functions in Python

Let's say you have variables that accept the student's first and last name, and their course number. Create a function that will display the values ​​of these variables. Let the last name be displayed in uppercase, and the first name - only with a capital letter.

Create a function that will print the area of ​​a rectangle.

Make a function that takes a string as a parameter and returns a tuple of its characters.

Create a function that will check two numbers. Let it print messages about which one is greater than the other or if they are equal in value.

Make a function that will check the type of a variable and if it is a number, then convert it to a string.

Make a function that fills a list with even numbers from 1 to a given number.

Suppose you have a dictionary that stores usernames as keys and ages as values. Create a function that outputs all key-value pairs as a tuple.

Create a function that takes a number as a parameter and returns a string with the corresponding day of the week.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline