Create deciToHexaFunc.py

This commit is contained in:
helplessThor
2020-10-19 20:23:11 +05:30
committed by GitHub
parent e797c8fa5c
commit 65a56b6915

View File

@@ -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