What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-20 21:49:14
Python Tkinter timer animation
#!/usr/bin/env python3 # Display UTC. # started with https://docs.python.org/3.4/library/tkinter.html#module-tkinter import tkinter as tk import time def current_iso8601(): """Get current date and time in ISO8601""" ... Add solution -
Python 2021-11-20 21:42:21
pygame for loop for draw shape
import pygame from pygame.locals import * from sys import exit from random import * pygame.init() screen = pygame.display.set_mode((640, 480), 0,32) class Rectangle: def __init__(self, pos, color, size): self.pos = pos self.color =... Add solution -
Python 2021-11-19 11:06:16
Encoder LSTM
class Encoder(nn.Module): def __init__(self, vocab_len, embedding_dim, hidden_dim, n_layers, dropout_prob): super().__init__() s... Add solution -
Python 2021-11-17 17:58:08
what is the purpose of super keyword in python
class Parent: def __init__(self, txt): self.message = txt def printmessage(self): print(self.message) class Child(Parent): def __init__(self, txt): super().__init__(txt) x = Child("Hello, and welcome!") x.printmessage() Add solution