Fill in the blanks to calculate the expression x*(x+1) using an anonymous function and call it for the number 6. a = ( x: | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 8

Fill in the blanks to calculate the expression x*(x+1) using an anonymous function and call it for the number 6. a = ( x:

help

12th Jul 2018, 10:38 AM
Patrick Mita
Patrick Mita - avatar
7 Réponses
+ 2
because this is done with lambda and the sololearn lesson on lambda is a good read on how it works. This is a learning platform so its good to provide the askers lessons on the subject to help them learn what they are doing while writing code
12th Jul 2018, 3:02 PM
Markus Kaleton
Markus Kaleton - avatar
+ 1
Can we please just stop posting random lesson sections in the Q&A already?
12th Jul 2018, 12:12 PM
Janning⭐
Janning⭐ - avatar
0
a = lambda x: x*(x+1) print(a(6))
12th Jul 2018, 10:42 AM
Satyam
0
Janning⭐ not random, it's relevant for the question
12th Jul 2018, 2:27 PM
Markus Kaleton
Markus Kaleton - avatar
0
Hi Markus Kaleton, Please, enlighten me. Questions generally end with a question mark. This poster has posted three of these in a row in similar format.
12th Jul 2018, 2:53 PM
Janning⭐
Janning⭐ - avatar
0
a = (lambda x:x*(x+1))(6) print(a) don't thank me you can subscribe my youtube or... follow me on anywhere...lol...just kidding... search hackerGprat in any sosical media you will got me there
13th Dec 2020, 3:28 PM
HackerGprat
HackerGprat - avatar