-
Missions of the week: Unruly, Remove All Before, Compress List, and Replace Last
Good day CheckiO users!
Challenge yourself with our latest missions:
The first mission is called "Unruly" created by Phil15 where your task is to color all the empty cells on the uncompleted rectangular grid.
unruly(('......', '..B...', 'W.B.W.', '......', 'W...W.', 'WW..W.')) == ('BBWWBW', 'BWBWBW', 'WWBBWB', 'BBWWBW', 'WBWBWB', 'WWBBWB')
The second is the "Remove All Before" mission and here you have to remove from the list all of the elements before the given one.
remove_all_before([1, 2, 3, 4, 5], 3) == [3, 4, 5] remove_all_before([1, 1, 2, 2, 3, 3], 2) == [2, 2, 3, 3]
The third one is the "Compress List" mission where you need to compress a given list by removing all of the equal elements and leaving only one of them.
compress([ 5, 5, 5, 4, 5, 6, 6, 5, 5, 7, 8, 0, 0]) == [5, 4, 5, 6, 5, 7, 8, 0] compress([1, 1, 1, 1, 2, 2, 2, 1, 1, 1]) == [1, 2, 1]
The fourth mission is called "Replace Last" and here the last element should become the first one in a given list.
replace_last([2, 3, 4, 1]) == [1, 2, 3, 4] replace_last([1]) == [1]
-
Highlights from the world of Python:
- Wanna take a look at some of the tools and practices that are being used at JetBridge to develop Python web applications? Check out Python 2020: Modern Best Practices - a survey of things that had success in multiple projects. You'll be able to go through very understandable descriptions with nice examples.
- See the latest take on the Python 3.9 compatibility changes that broke a lot of packages, and what can be expected from Python 3.10 and above.
- Legally Free Python Books List is a great collection of books that you can get your hands on no payment required. But note that these books are available at the moment, so you might want to hurry!
The users who’ve made the TOP 3 this month are Phil15, przemyslaw.daniel, and veky. You are doing great, guys! Keep on coding!
Welcome to CheckiO - games for coders where you can improve your codings skills.
The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.
Join the Game