Quick actions

cmd+k|ctrl+k

Navigation

Languages

GiaDieu_pymihcm1708_ex3_9

Snippet info

Language

Python

Visibility

public

Author

giadieuly

Created

2017-08-12T19:50:50Z

Updated

2017-08-15T09:49:57Z

def solve():
    bigList = []
    resultList = []
    for a in range(1,10)[::-1]:
        for b in range(1,10):
            for c in range(1,10):
                if a+b/c == 10:
                    bigList.append([a,b,c])
    for i in bigList:
        sort = sorted(i)
        reverse = sort[::-1]
        resultList.append(reverse)
    print(resultList)
solve()
INFO