≈ the.bay.news

Max Value Algoritm

Discussions on Python.org
Max Value Algoritm
Hi! So I was revising the code for the Max Value algoritm I built for my algoritms practice and I decided to replace a fixed list of numbers with an input().split(), so now the algoritm stops at a random place in the list and returns a random value from the list instead of max value. And I don’t understand what might be an issue. Can someone help please? a = input().split() print(f"\nCurrent list of values:", a) def maxval(a): """Function that returns biggest value the array""" mx = a[...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.