def ascending(lst):
for i in range(len(lst)):
if lst == True:
print('YES')
else:
print('NO')
lst = input().split()
print(ascending(lst))
what condition can be used here to output “YES”,
it only gives me “NO” at any input
as a beginner I’ve been sitting for a long time trying to solve this
New contributor
user25772523 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.