DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦Decimal ↔ hexadecimal converter

from functorflow import ff

a = ff('hex-dec').dec(hex='0xfa')
# 250

b = ff('hex-dec').hex(dec='250')
# '0xfa'

c = ff('hex-dec').hex(dec='250', options={'prefix': False})
# 'fa'
Enter fullscreen mode Exit fullscreen mode

Stop wasting time installing and configuring Python libraries. Use them right away. 📦FunctorFlow instantly auto-install and auto-config them for you.

Top comments (2)

Collapse
 
iamsbharti profile image
Iamsbharti

Is there a way to run only single file for .py/.java in repl? I have created a repl and there are few different files ,but when I am executing it all the files are getting executed.

please suggest

Collapse
 
samandar profile image
Samandar Ravshanov

Hi friend,

You should create a new repl for that.

Repl.it runs the main file and if you do not import other files they don't get executed.