0

To declare a variable,add 5to it.

x=4 x_=5 print_

20th Nov 2016, 8:32 AM
Sree Latha
Sree Latha - avatar
4 Respuestas
+ 1
x = 4 x += 5 #the same as x = x+5 print(x)
20th Nov 2016, 9:07 AM
donkeyhot
donkeyhot - avatar
0
def 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)) I didn't understood this formation pls explain me step by step
28th Nov 2016, 5:20 AM
Sree Latha
Sree Latha - avatar
0
what is the highest number output by this code? def print_nums(x) for I in range(x): print(I) return print_nums(10) I know the answer.But the question specifies the highest number.I didn't get clarity on this.
28th Nov 2016, 5:50 AM
Sree Latha
Sree Latha - avatar
0
print the first element of the list,if it contains even number of elements list[1,2,3,4] if_(list)%2==0: print (list[_]) pls explain me
28th Nov 2016, 5:57 AM
Sree Latha
Sree Latha - avatar