- 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

????

9th Dec 2018, 4:58 PM
Archit Rana
12 Antworten
+ 5
def : return
13th Jul 2020, 11:37 AM
Shakeel Ahmed
Shakeel Ahmed - avatar
+ 4
def shorter(x,y) if len (x) <len (y): return x else: return y
26th Apr 2020, 6:36 AM
Shaik Fayaz
Shaik Fayaz - avatar
+ 1
The solution is: def min(x, y): if x<=y : return x else: return y
26th Aug 2021, 6:51 PM
Owethu Sotomela
Owethu Sotomela - avatar
0
def smaller(x,y): if x<=y: return x else: return y
9th Dec 2018, 5:24 PM
LordHill
LordHill - avatar
0
def : return
11th Feb 2021, 6:07 PM
Md Momin Uddin Hridoy
Md Momin Uddin Hridoy - avatar
0
answer: def min(x, y): if x<=y : return x else: return y
10th Jul 2021, 1:46 AM
Bimsara Senavirathna
Bimsara Senavirathna - avatar
0
def shortest_string(x , y): if len ( x ) <=len(y): return x else: return y
30th Oct 2022, 4:06 PM
Akash
- 1
def min(x,y): if x<=y: return x else: return y
8th May 2019, 9:53 AM
Derrick Imbati
- 1
idk the answer! can you please tell me it?
23rd Dec 2019, 6:02 PM
Arjun Singhal
Arjun Singhal - avatar
- 2
def smaller (x,y): if x<=y return x else: return y
23rd Dec 2019, 6:09 PM
Arjun Singhal
Arjun Singhal - avatar
- 2
def min(x,y): if x<=y: return x else: return y
11th Jul 2020, 6:35 PM
Akintobi Akinshola Ajayi
Akintobi Akinshola Ajayi - avatar
- 3
hbuioehuivrehvyuevbuivcfencuiecnbduixneuirvfnbvubofuincuidc tell me the answer
25th Mar 2019, 12:50 PM
Driss Juid
Driss Juid - avatar