What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-28 02:15:02
gaussian elimination python without library
# Importing NumPy Library import numpy as np import sys # Reading number of unknowns n = int(input('Enter number of unknowns: ')) # Making numpy array of n x n+1 size and initializing # to zero for storing augmented matrix a = np.zeros((n,n+1)) # Mak... Add solution -
Python 2021-08-28 01:50:02
scrollable canvas in Tkinter
import tkinter as tk from tkinter import ttk root = tk.Tk() container = ttk.Frame(root) canvas = tk.Canvas(container) #create canvas in the container frame scrollbar = ttk.Scrollbar(container, orient="vertical", command=canvas.yview) #create sc... Add solution -
-
Python 2021-08-27 23:00:02
python nested loop for a 2D list
list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] for i in range(0, len(list)): # loops over the external list for j in range(0, len(list[i])): # loops over every internal list print(list[i][j], end="\t") # prints the elements of the inner l... Add solution -
Python 2021-08-27 16:32:01
python import filenames that match search
# Basic syntax: glob.glob('/directory/to/search/search_pattern') # Where the search_pattern follows the Unix path expansion rules # Example usage: # Say you have a directory containing the following files and you only # want to get the filenames ending ... Add solution
Best helpers
Ranking is empty