alexanderquispe / BiLab_Summer_Python

Python course for Business Lab-PUCP
MIT License
0 stars 7 forks source link

Add files via upload #50

Closed apla16 closed 8 months ago

apla16 commented 8 months ago

For this work we learned new functions and methods for the python types: tuple, lists and strings.

With the exercises we understand how work "print" because we can use that for show the result of a code or determinate what element is in determinate coordinate. Also, we noticed that not all python types can change after it has been created. As well, there is a len function to determinate the length of the different python types. There is other functions like sum that is used to achieve the total sum of all the results. Finally, the map function wich use "lambda" to define a function that apply for all python types in each element y give us an specific result.

In addition, we use the split function for eliminate all the blank spaces and it give all the elements separet by a coma. For get a sentence we can use the join function. And to get the max and min value also its index we define the list of values and the function. We use len function before but in this exercises we noticed that we also can introduce a condition. Also when we find an element in a string we must remember that the result will give the position minus one. Finally, we can define what we want to do in a python type. For that we begin with "def" and finish with "return" and the result.