Jan 31, 2025
The complex func works with map:
print(list(map(lambda x:(x ** 2 if x % 2==0 else x ** 3),[1,2,3,4])))
The complex func works with map:
print(list(map(lambda x:(x ** 2 if x % 2==0 else x ** 3),[1,2,3,4])))
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Max Kleiner's professional environment is in the areas of OOP, UML and coding - among other things as a trainer, developer and consultant.