What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-28 02:25:05
python wheel
whl files, or wheels, are a little-discussed part of Python, but they've been a boon to the installation process for Python packages. ... Wheels are a component of the Python ecosystem that helps to make package installs just work. They allow for faster i... Add solution -
Python 2022-02-27 23:10:03
how to make tic tac toe in python
#Tic Tac Toe game in python by techwithtim board = [' ' for x in range(10)] def insertLetter(letter, pos): board[pos] = letter def spaceIsFree(pos): return board[pos] == ' ' def printBoard(board): print(' | |') print(' ' + board[1]... Add solution -
Python 2022-02-27 22:15:07
OrederedDict
import collections #dictionnarry that remembers the order in which the items where given print 'Regular dictionary:' d = {} d['a'] = 'A' d['b'] = 'B' d['c'] = 'C' d['d'] = 'D' d['e'] = 'E' for k, v in d.items(): print k, v print '\nOrderedDict:' d =... Add solution -
Python 2022-02-27 20:35:07
.env files in repl
#in the ".env" file. THIS IS FOR PYTHON TOKEN=38zdJSDF48fKJSD4824fN DB_USERNAME="admin" # defining variables like you'd do in python but secret DB_PASSWORD=w0ws0secure!! #in the "main.py" file import os print(os.getenv(&quo... Add solution
Best helpers
Ranking is empty