mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2026-06-02 13:28:10 +02:00
Create deciToHexaFunc.py
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def deciToHexaFunc(max_dec=1000):
|
||||
a = random.randint(0, max_dec)
|
||||
b = hex(a)
|
||||
problem = "Binary of " + str(a) + "="
|
||||
solution = str(b)
|
||||
|
||||
return problem, solution
|
||||
Reference in New Issue
Block a user