Discussions Q&R
Why does this not work?
2 Votes
2 RéponsesGuys please help me with these (assignment) :
-create a function "manipulate_data" that does the following;
1.accepts as the first parameter astring specifying the data structure to be used e. g a list.
2.accepts as the second parameter the data to be manipulated based on the data structure specified e.g [1,4,9,16,25] for alist data structure.
0 Vote
7 RéponsesVar vs function.
-1 Vote
1 Réponsedef add(x, y):
return x + y
def do_twice(func, x, y):
return func(func(x, y), func(x, y))
a = 5
b = 10
print(do_twice(add, a, b))
Please explain step by step
Which is caller here?
Explain the 3rd and 4th line ?
why in 4th line we write add(add(x,y),add(x,y)) which is function of 1st line ?
how can we write function after return statement insted of (x+y+x+y )=30?
0 Vote
2 RéponsesAujourd'hui en vedette
Time up code for data revision
0 Votes
Web vs python
1 Votes
Best Python Calculator Code
1 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Animation
2 Votes
While or for loop
0 Votes
how to import in pygame
0 Votes