0
To declare a variable,add 5to it.
x=4 x_=5 print_
4 Answers
+ 1
x = 4
x += 5 #the same as x = x+5
print(x)
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
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.
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