A 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...5 min read路smavisswag.hashnode.devJul 27, 2023
OOPs 馃ゲ馃ゲ馃ゲ 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...5 min read路smavisswag.hashnode.devJul 6, 2023
Values 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...2 min read路smavisswag.hashnode.dev1AJul 3, 2023
Upper 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...1 min read路smavisswag.hashnode.devJul 2, 2023
GCD 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...1 min read路smavisswag.hashnode.devJul 1, 2023