Skip to content

Python code snippet – How to find highest number in list without using max function?

Numbers = [10,20,40,50,100,90]
highestNum = 0
for number in Numbers:
    if number > highestNum:
        highestNum = number
See also  Python code snippet - How to import pygame?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.