id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

gaurav1780@gmail.com 01_variables_and_operators > all_have_a_group
prev  |  next  |  chance

Define a function that when passed two integers, the first representing the total number of students in a class, and the second representing the size of groups required by the professor for a group assignment. Return true if the class can be split in the given group size without any student(s) left without a group, false otherwise.


all_have_a_group(1000, 50) → True
all_have_a_group(80, 20) → True
all_have_a_group(80, 30) → False

...Save, Compile, Run (ctrl-enter)

def all_have_a_group(class_size, group_size):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 1 Post-solution available

Copyright Nick Parlante 2017 - privacy