-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ex. 0.3.1 #11
Comments
Hi Casper Take a look at the cell that you ran as [80]. In each round of the loop, you printed an index and the element in a list that was associated with that index. Now, you want to write a function that does a similar thing. I.e. it should end with
However, instead of just printing/returning all indices and elements, you want to return only the index that is associated with the minimum value and that exect minimum_value. You cannot print Was this helpful? Otherwise, I can provide an example. Best, |
Hi Casper, One problem in the function above is that you are calling the function Consider the function below that takes a list of numbers as inputs and finds the index and value associated with the first prime number in the list. Try and explain each step for yourself and see if this helps you write the right minimum function. Best,
|
I think I have the minimum and index of x:
but I don't know how to put them together in the minimum function:
The text was updated successfully, but these errors were encountered: