diff options
Diffstat (limited to 'progs/a400.py')
-rw-r--r-- | progs/a400.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a400.py b/progs/a400.py new file mode 100644 index 0000000..164e635 --- /dev/null +++ b/progs/a400.py @@ -0,0 +1,4 @@ +def sort_mixed_list(mixed_list):
+ int_part = sorted([i for i in mixed_list if type(i) is int])
+ str_part = sorted([i for i in mixed_list if type(i) is str])
+ return int_part + str_part
\ No newline at end of file |