Share your repls and programming experiences

← Back to all posts
python lib trei!
kwe (57)

simple library for simple tasks

how to use

download the trei.py

and enter this code

import trei

here is some basic stuff you can do with it:

input

import trei
#trei.inp(question, input, output,else)
trei.inp("do you like dogs?","yes","same!","oh >:(")

color

import trei
#colors are: green, blue, cyan
#trei.colr(color,text)
trei.colr("green","hi!!")

weird rpg

import trei
#trei.rpg(enemy hp, your damage, enemy name)
trei.rpg(10,1,"bob")

its pretty simple but its work