• This week's missions: Family Dinner and Team Play

checkio

Good day CheckiO users!

Challenge yourself with our latest missions from Vasily__Chibilyaev:

The first mission is called Family Dinner in which you should determine the maximum total sum of plates' beauty values that can be archived.

best_plates([[10, 10, 100, 30], 
             [80, 50, 10, 50,]], 5) == 250
             
best_plates([[80, 80],
             [15, 50],
             [20, 10]], 3) == 180
  

The second is the Team Play mission where your task is to calculate the maximum score that can be obtained by your team.

max_score([4, 2, 1], [2, 5, 3], 2) == 10
max_score([7, 1, 4, 4], [5, 3, 4, 3], 2) == 18
max_score([5, 5, 5], [5, 5, 5], 1) == 15
    Highlights from the world of Python:
  • Writing concurrent code in Python can be tricky. That's why you have to know how to run a piece of eligible code concurrently with a module called the concurrent.futures without needing the added modularity that the threading and multiprocessing APIs expose. You can find great vivid examples and the nice understandable explanations.
  • Learn how eval() - a Python’s incredibly useful tool - works and how to use it safely and effectively in your Python programs. You'll find out how to use it to dynamically evaluate arbitrary string-based or compiled-code-based input, how to use it to code an application that interactively evaluates math expressions, and how eval() can make your code insecure and how to minimize the associated security risks. It can be very handy.
  • Go beyond PEP8 and cover the core elements of Python style. There aren't just mere issues of syntax and module layout. You'll dive deep into areas of paradigm, organization, and architecture. It's very interesting and can be quite useful!

The users who’ve made the TOP 3 this month are --Serial_Sniper--, NigrumAquila, and loresh.  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