Created
January 30, 2015 15:13
-
-
Save KattyaCuevas/746ac49bd634c9f41c8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import random | |
def lanzar_dado(): | |
dado = 1 + random.randrange(6) | |
print "Dado" , dado , "y el castigo es: " | |
if dado == 1 or dado == 5: | |
print "Toman todos" | |
if dado == 2 or dado == 6: | |
print "Toma otro" | |
if dado == 3: | |
print "Toma el de la derecha" | |
if dado == 4: | |
print "Toma el de la izquierda" | |
lanzar_dado() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment