avatar Bite 17. Form teams from a group of friends

Write a function called friends_teams that takes a list of friends, a team_size (type int, default=2) and order_does_matter (type bool, default False).

Return all possible teams. Hint: if order matters (order_does_matter=True), the number of teams would be greater.

See the tests for more details. Enjoy :)

Login and get coding
go back Intermediate level
Bitecoin 3X

665 out of 694 users completed this Bite.
Will you be the 666th person to crack this Bite?
Resolution time: ~32 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.55 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help