What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-14 21:43:06
create a hangman game with python
#importing the time module import time #welcoming the user name = raw_input("What is your name? ") print "Hello, " + name, "Time to play hangman!" print " " #wait for 1 second time.sleep(1) print "Start g... Add solution -
Other 2021-10-09 15:13:09
8-queens problem can be solved by
START 1. begin from the leftmost column 2. if all the queens are placed, return true/ print configuration 3. check for all rows in the current column a) if queen placed safely, mark row and column; and recursively check if we approach in the ... Add solution -
C 2021-10-03 15:33:05
blockchain implementation
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
Python 2021-10-02 01:33:02
import counter python
>>> from collections import Counter >>> >>> myList = [1,1,2,3,4,5,3,2,3,4,2,1,2,3] >>> print Counter(myList) Counter({2: 4, 3: 4, 1: 3, 4: 2, 5: 1}) >>> >>> print Counter(myList).items() [(1, 3), (2, ... Add solution
Best helpers
J-Dizzle
+5
Anirudhan J
+5
Supes9
+5
Marcoose
+5
Vikki Hills
+5
BuckNaked69
+5
Magguu
+5
EHH
+5
Srishti L
+5
L E Morin
+5
Ciara
+5
Chris Paton
+5
Rrrrhh
+5
Jaehyeon Yu
+5
Enceladus
+5
Dan Romik
+5
HDdeveloper
+5