mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
14 lines
262 B
Python
14 lines
262 B
Python
from math import *
|
|
from fractions import Fraction
|
|
|
|
|
|
def factors(n):
|
|
result = set()
|
|
for i in range(1, int(sqrt(n)) + 1):
|
|
if n % i == 0:
|
|
result.add(i)
|
|
result.add(n // i)
|
|
return result
|
|
|
|
|
|
print("loaded Python calculator")
|