Answer to Question #4474 in Python for saba

Question #4474
Use do to define (minimum lst) which returns the minimum of a list of numbers. You
may want to define an auxiliary procedure (smaller x y), using if, which returns the
smaller of two numbers.

I started doing this:
(defun minimum (lst)
"(lst) returns the smallest number of list."
(do ((numbers lst (cdr numbers))

But I'm stuck in the defining my command and would appreciate any insight greatly.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS