Skip to content

developius/resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resources

Programming resources for young people and teachers - and myself.

prime.py

isPrime(number) returns True or False depending on whether number is prime or not

primeSieve(max) returns all the prime numbers up until max

ciphers.py

Morse class

encrypt("text") returns the encryption of text

decrypt("- . ... -") returns the decryption of - . ... -

Caeser class

encrypt("text", 2) returns the encryption of text with a shift of 2

decrypt("vgzv", 2) returns the decryption of vgzv with a shift of 2

Subsitution class

encrypt("text", "FVGZJAYIRQNWHMBSLXOECUTDPK") returns the encryption of text with a key of FVGZJAYIRQNWHMBSLXOECUTDPK

decrypt("ejde", "FVGZJAYIRQNWHMBSLXOECUTDPK") returns the decryption of ejde with a key of FVGZJAYIRQNWHMBSLXOECUTDPK

About

Resources for young people and teachers - and myself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages