This shows you the differences between two versions of the page.
ewis:laboratoare:03 [2023/03/22 17:50] alexandru.predescu [Task] |
ewis:laboratoare:03 [2023/03/22 17:51] (current) alexandru.predescu [Task] |
||
---|---|---|---|
Line 135: | Line 135: | ||
</code> | </code> | ||
- | <note>**T1 (4p)** Having a list, filter the even numbers and get the sum of the squared elements. | + | <note>**T1** Having a list, filter the even numbers and get the sum of the squared elements. |
*Example list (random generator) | *Example list (random generator) | ||
<code python> | <code python> | ||
Line 267: | Line 267: | ||
==== Task ==== | ==== Task ==== | ||
- | **T1 (2p)** Lab examples | + | **T1 (2p)** Lab task presented above |
**T2 (3p)** Use the functions presented in this lab to read text from a data file and count the number of occurrences for each word. Print the words sorted by the number of occurrences. | **T2 (3p)** Use the functions presented in this lab to read text from a data file and count the number of occurrences for each word. Print the words sorted by the number of occurrences. |