This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a learning tool to illustrate the steps of converting from | |
# one number system to another. | |
# dec2hex(int) Convert a decimal number to hex step-by-step. | |
# dec2bin(int) Convert binary number to decimal step-by-step. | |
# bin2dec(string) Convert a binary fraction to a decimal fraction. 12 decimal places. | |
# bin2float(string) Convert a binary fraction to a decimal fraction with scientific notation. | |
# float2bin(float) Convert a decimal fraction to a binary fraction. | |
def low_scientific(n, pnt=True): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials | |
!pip install kaggle | |
api_token = {"username":"USERNAME","key":"API_KEY"} | |
import json | |
import zipfile | |
import os | |
with open('/content/.kaggle/kaggle.json', 'w') as file: | |
json.dump(api_token, file) | |
!chmod 600 /content/.kaggle/kaggle.json | |
!kaggle config path -p /content |