thomaugust / five-py

Remake of five.js in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

five-py

Remake of five.js in python This can be found at https://github.com/jackdcrawford/five

All you need to do is import five

Random functions

Five
five.five() # 5
Roman
five.five() # "V"
String
five.five() # "Five"
Thousand
five.thousand() # 5000
Seconds, Minutes and Hours
five.seconds() # Prints 5, with a 5 second delay
five.minutes() # Prints 5, with a 5 minute delay
five.hours() # Prints 5, with a 5 hour delay

Maths

Plus
five.plus(int) # 5+int
Minus
five.minus(int) # 5-int
Times
five.times(int) # 5*int
Divide
five.divide(int) # 5/int
Power
five.power(int) # 5^int -- returns a decimal.

If Stuff

Is it really five?
five.isfive(int) # checks if int is equal to five
Is it greater or less than than five?
five.greater(int) # checks if greater, equal to or less than five

About

Remake of five.js in python

License:MIT License


Languages

Language:Python 100.0%