Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Lambda function python: print((lambda x: print(x))(5))
lambda
python
1 Vote
1 Answer
27th Jul 2023, 3:07 PM
Rajat Kumar
txt = input() x=txt.split() y=' ' for i in x: if len(i)>len(y): y=i print(y)
hlp
me
to
understand
-1 Vote
2 Answers
3rd May 2022, 7:47 PM
Kencharla keerthi
Nums = [1,2,8,3,0,7] res=list (filter(lambda x: x_5 nums)) print (res)
filter
map
python
0 Votes
3 Answers
9th Dec 2018, 10:09 PM
Max
What is it print((lambda x: x**2 + 5*x + 4) (-4))
is
it
lambdas
python
rus
what
рус
что
это
2 Votes
4 Answers
19th Dec 2016, 9:53 AM
Никита Судаков
nums = [11, 22, 33] a = list(map( x: , ))
filter
map
python
-2 Votes
3 Answers
9th Apr 2019, 3:32 PM
Akshay Chandran
When I click the top left. The output is not x: 0, y: 0.
coordinate
event
javascript
web
0 Votes
10 Answers
6th Mar 2017, 9:45 AM
K.C. Leung
def g(x): (q,d) = (1,0) while q <= x: (q,d) = (q*10,d+1) return(d)
python
1 Vote
3 Answers
14th Aug 2018, 5:46 AM
kamalesh vra
What is the output of this code? n=[2,8,2,6] k=list (map(lambda x: x//2,n)) print (k)
lambdas
map
3 Votes
4 Answers
27th Nov 2017, 1:36 PM
Janani Waduge
Does anyone know what is the exact idea of the line nestedlist.sort(key= lambda x: x[1]) ?
lists
nested
0 Votes
2 Answers
6th Dec 2019, 5:15 PM
Esteban Rueda
For i in x: no permite manejar los indices. Con en otros lenguajes por que?
arraylist
python3
0 Votes
1 Answer
10th Aug 2022, 5:13 PM
Juan Ulise Perez Heredia
i= int(input('Give me number!')) x = i + 10 nums=[ ] while i <= x: nums.append(i) i += 1 print(nums) Pls.e
python3
1 Vote
4 Answers
24th Oct 2020, 2:04 AM
Sushil Mundhra
Fill in the blanks to calculate the expression x*(x+1) using an anonymous function and call it for the number 6. a = ( x:
python
-8 Votes
7 Answers
12th Jul 2018, 10:38 AM
Patrick Mita
#named function def polynomial(x): return x**2 + 5*x + 4 print(polynomial(-4)) #lambda print((lambda x: x**2 + 5*x + 4) (-4
lambdas
python
1 Vote
1 Answer
9th May 2017, 4:54 AM
AJITH KUMAR
what does h(3231) return for the following function definition? def h(x): (m,a) = (1,0) while m <= x: (m,a) = (m*2,a+1) return(a
python
-1 Vote
2 Answers
13th Aug 2019, 6:06 PM
Su bagar Miwn
nums = (11, 22, 33) nums = tuple(map(lambda x: x+5, nums)) print(nums) this shud give error bcoz tuple is imutable but no error
filter
map
python
1 Vote
2 Answers
25th Feb 2017, 9:16 AM
adarsh
Given a list of numbers, output their sum using for loop.
[42,
0,
1,
124,
3,
555,
67,
7,
8,
8897,
99]sum=0for
i
in
s
x:
x=
0 Votes
6 Answers
18th Jul 2022, 9:40 AM
Syed Anas
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Help please?
4 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
Odd even threads without condition variable
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Write a program to find the strings are in isogram or not
0 Votes