+ 6
Can anyone give me a challenge?
I am currently doing the lambda module of python. I was thinking of making more projects to put my learning to use. Can anyone think of any good challenges that are of my level? Thank you in advance for your help
8 Answers
+ 6
I thought you were just wanting people to challenge you in a quiz. But for your question, we will wait for a Python star.
+ 6
Start off with something easy! You could make a lambda function that calculates every odd number to the power 3 unless they're strictly superior to 1000.
It's up to your imagination and creativity. Add complexity once you completed this task đ
+ 2
You can try Pig Latin challenge, if you have some problems, you can watch my variant Ps: bonus is impossible to make
+ 2
Tibor I agree
+ 1
What is python
+ 1
Botapalta, Python is a programming language
+ 1
One good practice with lambda, is to use it with map() and filter() functions.
For example try to list the square roots of all numbers in a given range (map)
Try to list all numbers in a range that are divisible by 7 (filter)
Take a sentence as a string, and list all words shorter than 5 characters
When you are good with map and filter, also check what reduce() can do, for example you can use it to calculate factorial (1*2*...*n)
http://book.pythontips.com/en/latest/map_filter.html
+ 1
I think this one is a good choice to practice map and lambda, but you can probably find other assignments where it can be used:
https://www.sololearn.com/learn/13844/?ref=app