Today, I learn to use the commanding prompt of python(python shell). And also practice some easy syntax in python.
Here is an easy sorting function I wrote :
num = [] tot = int(input("please input the number of members:\n")) for i in range(tot): num.append(int((input()))) for i in range(tot): for j in range(tot - i - 1): if num[i] > num[j + i + 1]: t = num[i] num[i] = num[j + i + 1] num[j + i + 1] = t for i in range(tot): print(num[i])
It could be better I think, cause there are too many uncomfortable expression. which I think could be written more naturally.