AVAjay Vikhram S Minsmavisswag.hashnode.dev路Jul 27, 2023 路 5 min readA Quick guide to TkinterIntro tkinter is one of the more popular Python GUI libraries. 馃憠 When you start a tkinter project, you get some boilerplate, or starter code. import tkinter as tk window = tk.Tk() window.title("Hello World") # Sets the name of the window in the bo...00
AVAjay Vikhram S Minsmavisswag.hashnode.dev路Jul 6, 2023 路 5 min readOOPs 馃ゲ馃ゲ馃ゲ in PythonOOP Object Oriented Programming (OOP) is a programming paradigm (a way of thinking about how to solve a problem) that is based on classes and objects, which store all of their data and behaviors inside them. You can think of a class like a cookie cu...00
AVAjay Vikhram S Minsmavisswag.hashnode.dev路Jul 3, 2023 路 2 min readValues Only and Keys Only function in pythonValues_Only Function: The function which accepts a dictionary of key-value pairs and returns a new flat list of only the values. Uses the .items() function with a for loop on the dictionary to track both the key and value of the iteration and returns...01A
AVAjay Vikhram S Minsmavisswag.hashnode.dev路Jul 2, 2023 路 1 min readUpper Case Function in PythonChecks if a string is upper case. Convert the given string to upper case, using str.upper() method and compare it to the original. def is_upper_case(string): return string == string.upper() #input and output: is_upper_case('ABC') # True is_upper...00
AVAjay Vikhram S Minsmavisswag.hashnode.dev路Jul 1, 2023 路 1 min readGCD Function in PythonCalculates the greatest common divisor between two or more numbers/lists. The helperGcdfunction uses recursion. The base case is when y equals 0. In this case, return x. Otherwise, return the GCD of y and the remainder of the division x/y. Uses the r...00