- 2
filling the blanks to define a function that takes two numbers as arguments and returns the smaller one min (x,y) if x<=y return
????
12 Respostas
+ 5
def : return
+ 4
def shorter(x,y)
if len (x) <len (y):
return x
else:
return y
+ 1
The solution is:
def
min(x, y):
if x<=y
:
return x
else:
return
y
0
def smaller(x,y):
if x<=y:
return x
else:
return y
0
def
:
return
0
answer:
def
min(x, y):
if x<=y
:
return x
else:
return
y
0
def shortest_string(x , y):
if len ( x ) <=len(y):
return x
else:
return y
- 1
def min(x,y):
if x<=y:
return x
else:
return y
- 1
idk the answer! can you please tell me it?
- 2
def smaller (x,y):
if x<=y
return x
else:
return y
- 2
def min(x,y):
if x<=y:
return x
else:
return y
- 3
hbuioehuivrehvyuevbuivcfencuiecnbduixneuirvfnbvubofuincuidc tell me the answer