write a complete program that reads 6 numbers and assigns true to variable isascending if the numbers are in ascending order. otherwise assign false to it. display the value of isascending.

See Answers (1)

Suggested Answer

A variable in programming is a value that can change depending on the conditions or passing information to the program. A program is typically made up of instructions that instruct the computer what to perform and data that program uses while running.What is the python program?number = 0list1 = []while number < 6:    x = input("enter six number: ")    number += 1    list1.append(x)if sorted(list1)==list1:    print("True")else:    print("False")The explanation of program is :The variable "number" is set to zero.To unpack our numbers, we declared an empty list.When number is less than 6, we request the user for input and increase the value of number to continue the loop.The users' input is appended to the list1.If the sorted value of list1 equals the list1, we print True.Otherwise, we will print False.To learn more about program refer to :https://brainly.com/question/26134656#SPJ4