Skip to content

Instantly share code, notes, and snippets.

View MiltonLn's full-sized avatar

Milton Lenis MiltonLn

View GitHub Profile
@MiltonLn
MiltonLn / prueba.py
Created April 13, 2017 18:16
Ejemplo
# Esto es un ejemplo
def prueba():
print("Hola")
@MiltonLn
MiltonLn / lisp_parser.py
Created July 19, 2017 03:42
Lisp parser built with Python
def tokenize(program):
"""
Helper method to receive a program as string and return it as a list of
tokens
"""
# We add spaces in order to create tokens using whitespace as criteria
program_with_spaces = program.replace('(', ' ( ').replace(')', ' ) ')
return program_with_spaces.split()
def identify_element(element):
@MiltonLn
MiltonLn / hangman.py
Last active October 6, 2024 16:04
A simple hangman game for Python Cali August Meetup about Testing in Python
import random
HANGMAN = [
'________',
'| |',
'| O',
'| |',
'| /|\ ',
'| |',