You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) n = n-1 list_ = []
while n>=0: list_.append(n) n = n-1
ordened_list_ = sorted(list_)
for x in ordened_list_: print( x**2 )
Seems like cookies are disabled on this browser, please enable them to open this website
Loops
You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) n = n-1 list_ = []
while n>=0: list_.append(n) n = n-1
ordened_list_ = sorted(list_)
for x in ordened_list_: print( x**2 )