Solve these subtasks all in the same file (use print()
statements to display the results):
Use the following list:
sample = ["a", 90, 8, "X55", "1z", 102, "asdf", 65, 10, "word", "567", 567]
Well:
int
type values should remain)… can you make it using a single line of code? now it's the time to introduce list comprehensions;
m = [[1, 2, 3, 4], [4, 1, 2, 3], [3, 4, 1, 2], [2, 3, 4, 1]]