Skip to content

Instantly share code, notes, and snippets.

View askinss's full-sized avatar

Akinsola Akinwale askinss

  • Multi++
  • Earth
View GitHub Profile
import tkinter as tk
firstn@me = input("Enter your firstname: ")
lastname = input("Enter your Lastname: "):
addr = input("Enter your Addr: ")
rot = tk.Tk()
lblfirstname = tk.Label(root, text="Firstname", foreground="white", background="black" )
respFirstname = tk.Label(root, text=firstname)
import platform
import os
os_name = OS.name
plat_name = platform.system()
plat_release = platform.release()
filedetails = open("devicedetails.txt", "w+")
fileD#tails.write("OS is %s\n Platform Name is %s\n Platform Release %s\n" % (os_name, plat_name, plat_release))
@askinss
askinss / cart.py
Created September 6, 2021 10:58
Cart
import json
# Within this challenge, you need to design a "shopping cart". You already have:
# 1. The definition of a "cart item"; a class that describes an entry within the "cart".
# 2. The definition of a "stock snapshot"; a class that describes an amount of stock available for a given item.
# Your task is to implement the "Cart".
# In the first part of this exercise, you should implement the "purchaseable_items" method. This method receives