127bf6b68296ce9a79dbd2e375ad3733385c1c03,dec_to_hex.py,,,#,1

Before Change

mydict={
        "0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","10":"A","11":"B",
    "12":"C","13":"D","14":"E","15":"F"
        }
dec_num=input("Enter the decimal number\n");
dec_num=int(dec_num)
value=""
while dec_num>0:
    value+=mydict[str(dec_num%16)]
    dec_num=dec_num//16
hex_value=value[::-1]
print(hex_value)

After Change

dec_num=input("Enter the decimal number\n")
print(hex(int(dec_num)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: geekcomputers/Python
Commit Name: 127bf6b68296ce9a79dbd2e375ad3733385c1c03
Time: 2017-10-03
Author: cuichao@sjtu.edu.cn
File Name: dec_to_hex.py
Class Name:
Method Name:


Project Name: estnltk/estnltk
Commit Name: 7dda2e7e471179d22e748f5054679af5c0214870
Time: 2015-07-01
Author: karl.valliste@gmail.com
File Name: estnltk/prettyprinter/prettyprinter.py
Class Name: PrettyPrinter
Method Name: __init__


Project Name: geekcomputers/Python
Commit Name: 8973e7b7acda4145d88621568f4e0a8751e24baa
Time: 2016-07-18
Author: myownway224533@gmail.com
File Name: osinfo.py
Class Name:
Method Name: