Skip to content

pyxudev/holmesxu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

holmesxu

A library for pypi to help users to simplify some logic steps on programming.

aorb

This helps you to short your if... else...

utility:
aorb(value_1, value_2, inp_value, res_1, res_2)
inp_value = value_1 -> return res_1
inp_value = value_2 -> return res_2
else -> Error

Example:

from holmesxu import aorb
import random

a = 1
b = 2
c = random.randrange(1, 4, 1)
print(aorb(a, b, c, a, b))

Result: c = 1

> 1

c = 2

> 2 

c = 3

> Exception: Error!

About

A library for pypi to help users to simplify some logic steps on programming.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages