invalid literal for int with base 10 1 2 3 4 5

0 votes
def strictlyInc(l):

    for i in range(len(l)-1):

        if l[i]>l[i+1]:

            return "No"

            break

    return "Yes"

   

   

l=[]

t=int(input())

while t>=1:

    n=int(input())

    while n>=1:

        k=int(input())

        l.append(k)

        n-=1

    t=-1

print(strictlyInc(l))
Apr 22, 2023 in Python by anonymous

edited 4 days ago 17 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP