Back to Freecodecamp

Factoring

curriculum/challenges/english/blocks/learn-common-factors-and-square-roots/6331d251b51aeedd1a2bd648.md

latest581 B
Original Source

--description--

This first video will show you how to find common factors and divide them out - in writing, then in code using loops and modulus operations.

Here is the <a href="https://colab.research.google.com/drive/1tB7N3QqHEbGk33v0BdTwZTVkS9ju9yn6?usp=sharing" target="_blank" rel="noopener noreferrer nofollow">Colab notebook used in this video.</a>

--questions--

--text--

What does the modulus (%) operator do in Python?

--answers--

returns the percent


divides


returns the remainder when dividing


creates a space

--video-solution--

3