gistlib
main.pyprobabilities = [0.1, 0.3, 0.7, 0.4, 0.9] max_prob = max(probabilities) max_index = probabilities.index(max_prob) print("Largest probability value:", max_prob) print("Index of the largest probability:", max_index) 215 chars7 lines
probabilities = [0.1, 0.3, 0.7, 0.4, 0.9] max_prob = max(probabilities) max_index = probabilities.index(max_prob) print("Largest probability value:", max_prob) print("Index of the largest probability:", max_index)
gistlibby LogSnag