Find minimum value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Find minimum value?

how can I find the minimum value of inputs not on a list just inputs anyone would like to put and when I input the sentinel my program stop running and give me the minimum value of the inputs put? Like I need help asap.

4th Apr 2022, 7:18 PM
Siyabonga Mbendane
Siyabonga Mbendane - avatar
2 Answers
+ 2
maybe defining a generator function where you compare your current input with the previous and choose the one that is the smallest? Although I wouldn't know how to write that but it must be doable.
4th Apr 2022, 10:57 PM
Korkunç el Gato
Korkunç el Gato - avatar
+ 1
Please give an example and link your code.
4th Apr 2022, 7:35 PM
Lisa
Lisa - avatar