HF RL Explorer

Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…

Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…: a task in unslop-harbor (Harbor dataset). def will it fly(q,w): ''' Write a function that returns True if the object q will fly, and False otherwise. The object q will fly if it's balanced…

The task

def will_it_fly(q,w): ''' Write a function that returns True if the object q will fly, and False otherwise. The object q will fly if it's balanced (it is a palindromic list) and the sum of its elements is less than or equal the maximum possible weight w.

Part of rawmodels/unslop-harbor.