Scrum and extreme programming both follow iterations which are known as sprints. However, the sprints in a Scrum process last up to two weeks to one month long whereas in extreme programming (XP) team the iteration lasts for one or two weeks. Extreme programming is more flexible than Scrum as Scrum does not allow any change in during iterations.