Skip to content

Instantly share code, notes, and snippets.

View Fergmux's full-sized avatar

Fergus Mullineux Fergmux

View GitHub Profile
def factorial(x):
n = range(1, x+1)
total = 1
for y in n:
total *= y
return total
def is_prime(x):
n = range(2, abs(x))
for i in n:
if abs(x) % i == 0:
return False
else:
return True
def anti_vowel(text):
for x in text:
c = x.lower()
n = list(text)
if c in 'aeiou':
i = text.index(c)
n[i] = ''
text = ''.join(n)
return text

Keybase proof

I hereby claim:

  • I am fergmux on github.
  • I am fergmux (https://keybase.io/fergmux) on keybase.
  • I have a public key ASCW1PGdyWzOit5G4qhB4Kk7z6c8w6cGscnTedLbwjErEwo

To claim this, I am signing this object: