Question: Please program like begginer! copypaste solutions from chat gpt are no welcome . Please solve all tasks. T Task 1 . Define a min _
Please program like begginer! copypaste solutions from chat gpt are no welcome Please solve all tasks. T
Task Define a minlength variable that will store an int. Using the corresponding higher order function and lambda expression, store in the variable longwords all words from the list of words that are longer than minlength :
rijeci jabuka "pas", "knjiga", "zvijezda", "prijatelj", "zvuk", "Cokolada", "ples",
"pjesma", "otorinolaringolog"
minduljina promptUnesite minimalnu duljinu rijei:
# minduljina
dugerijeci
# printdugerijeci #zvijezda 'prijatelj', 'cokolada', 'otorinolaringolog'
Task Koristei funkcije all i map, provjerite jesu li svi studenti punoljetni:
studenti l
ime: "Ivan", "prezime": "Ivic", "godine";
ime: "Marko", "prezime": "Markovid", "godine";
ime "Ana", "prealme", "Maid", "qodine"
imet "Petra", "preaime": "Perrid", "godine",
ime: "Iwa", "prezime": "Ivic", "godine":
fime: "Mate", "prezime": "Matie", "godine":
svipunoljetni
prinesvipunoljetni False
Task Using the appropriate higherorder function and lambda expression without comprehension store in a variable transform the result of squaring all the numbers in the list where the result must be a dictionary where the keys are original numbers, and the values are the squares of those numbers:
brojevi
transform
printtransform # : : : : :
Task Using the filter function, filter only numbers greater than :
brojevi
veciod
printveciod #
Task Using the map function, square the lengths of all the strings in the list:
nizovi jabuka "kruska "banana", "narana
kvadriraneduljine
printkvadriraneduljine #
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
