mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update convert_any_base.py
This commit is contained in:
parent
737898f55d
commit
c87740bc66
@ -1,3 +1,8 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# author: bt3gl
|
||||||
|
|
||||||
|
|
||||||
def convert_to_any_base(base: int, num: int) -> str:
|
def convert_to_any_base(base: int, num: int) -> str:
|
||||||
|
|
||||||
if num == 0:
|
if num == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user