Home > other >  Define a function, but small white validate the input all Numbers from big to small in turn order
Define a function, but small white validate the input all Numbers from big to small in turn order

Time:09-24

Excuse me, where is this wrong??

Def f (* x) :
M=list (x)
Return (Margaret spellings ort (reverse=True))
Print (Margaret spellings ort (reverse=True))
Print (f (4,2,3,1))


I changed, by the way, the problem that do wrong in where?
Def f (* x) :
M=list (x)
L=sorted (m, reverse=True)
Return (l)
Print (f (4,2,3,1))

CodePudding user response:

A list of the built-in sort method has no return value
The list of operation itself
You can return this list directly to the

Def f (* x) :
M=list (x)
Margaret spellings ort (reverse=True)
Return m
  • Related