Coding in the Large and Small

CodingBat is a free live coding platform that helps students to practice hundreds of Java and Python problems in a variety of topics.

We break down coding problems into small chunks that develop fundamental skills in data structures and other programming concepts. Mastering smaller problems will help students break down larger, more complex problems.

def big_diff(nums): min_num = nums[0] max_num = nums[0] for i in range(1, len(nums)): if nums[i] < min_num: min_num = nums[i] if nums[i] > max_num: max_num = nums[i] return max_num - min_num

Live Coding in Your Browser

Run code directly from your browser and receive immediate feedback. No software installation. No sign up required.

Platform for Teachers and Students

CodingBat helps teachers track student progress and assist in their learning. CodingBat problems are stress-free ways for students to achieve their coding goals.