Sort numbers by the remainder

Report a typo

You are given a list of numbers nums. Sort the list by the remainder of dividing by three and print the result. Use a lambda function as key if possible.

Write a program in Python 3
nums = [int(num) for num in list(input())]

# write your code here
___

Create a free account to access the full topic