OpenMined / courses

A place where our community can discuss OpenMined Courses, including posting questions, sharing feedback, or providing comments for discussion!
http://courses.openmined.org
167 stars 74 forks source link

Cyclic groups code change suggestion (Modular Arithmetic - Foundations of computation) #418

Open Sukanya-rs opened 2 years ago

Sukanya-rs commented 2 years ago

Description

Suggestion to change the print statement that is part of "Cyclic groups" of "Modular Arithmetic"(Course: Foundations of computation).

Change print(f"{g}^{count}={prev_power}")

to #print(f"{prev_power}mod{m}, {prev_power}")

Are you interested in working on this improvement yourself?

Explanation for the changes suggested:

Screenshot 2022-04-25 at 1 39 46 PM

Screenshot 2022-04-25 at 1 40 57 PM