Some time we need a quicker way to unpublish nodes in Drupal project with Contextual Links. This mini code snippet will show you how to create a custom module to …
Month: February 2014
Hangman Game in Python
Code for Hangman Game in Python : import random ###################################################### def get_any(category): return random.sample(category, 1)[0] #################################################################333 def list_of_alphabets(already_tried): alphabets=[chr(i) for i in range(ord(‘a’), ord(‘z’)+1)] d = list(set(alphabets) – set(already_tried)) …