eternal mindset

Bio
Hiker, Biker. Wannabe Skateboarder, Bassist, and Coder.

Top Corona Virus Time-Wasters So Far

Top Listened Bands from July 2020 (According to Last.Fm)

  1. Lil Uzi Vert

  2. Alice In Chains

  3. Eyehategod

  4. M.I.A.

  5. Crystal Castles

Sample Script:

'''
import argparse

#this simple utility script uses the Python argparse library to convert a decimal integer into binary, octal, and hexadecimal.
#this utility script is based on the code hosted by Programiz at the following URL, author unknown
#https://www.programiz.com/python-programming/examples/conversion-binary-octal-hexadecimal

def integerConverter(int):
    print("The decimal value of", int, "is:")
    print(bin(int), "in binary.")
    print(oct(int), "in octal.")
    print(hex(int), "in hexadecimal.")
    return

parser = argparse.ArgumentParser(description='Convert a decimal integer to binary, octal, and hexadecimal.')
parser.add_argument('integer', type=int, help='the decimal integer to be converted')
args = parser.parse_args()

integerConverter(args.integer)
'''

this simple utility script uses the Python argparse library to convert a decimal integer into binary, octal, and hexadecimal. I chose this script because doing these sorts of operations was a common task in a Computer Science course I took two semesters ago, and having this script to check your work could come in handy.

Link to Script File: numberconverter.py