What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-27 19:15:07
pkl save multiple files
# Using a list, tuple, or dict is by far the most common way to do this: import pickle PIK = "pickle.dat" data = ["A", "b", "C", "d"] with open(PIK, "wb") as f: pickle.dump(data, f) wi... Add solution -
Python 2022-03-27 15:15:40
button tkinter
from tkinter import * #Creating a win win = Tk() #Giving a Function To The Button def btn1(): print("I Don't Know Your Name") #Creating The Button button1 = Button(win, text="Click Me To Print SomeThing", command=btn1) #put on scree... Add solution -
Python 2022-03-25 00:20:06
Function to a button in tkinter
from tkinter import * #Creating a win win = Tk() #Giving a Function To The Button def btn1(): print("I Don't Know Your Name") #Creating The Button button1 = Button(win, text="Click Me To Print SomeThing", command=btn1) #put on scree... Add solution -
Python 2022-03-25 00:20:01
python list as stack and queue
def isEmpty(stk): # checks whether the stack is empty or not if stk==[]: return True else: return False def Push(stk,item): # Allow additions to the stack stk.append(item) &... Add solution
Best helpers
Simon LANG
+5
Ryo Hirai
+5
Sqlsourcerer
+5
Pierus
+5
Ken N.
+5
Rene Duchamp
+5
Susette87
+5
Tanveer Ali
+5
Andrew Besag
+5
Derek Kaplan
+5
Littleprince
+5
Bridget W.
+5
Haidy Kassem
+5
Ferhat Turan
+5
Jwp36
+5