Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Nombre():
- import random
- n= random.randint(1,4)
- if n == 1:
- a= random.choice(lista)
- print a
- if n== 2:
- a= random.choice(lista)
- b= random.choice(lista)
- print a+b
- if n== 3:
- a= random.choice(lista)
- b= random.choice(lista)
- c= random.choice(lista)
- print a+b+c
- if n== 4:
- a= random.choice(lista)
- b= random.choice(lista)
- c= random.choice(lista)
- d= random.choice(lista)
- print a+b+c+d
- else:
- print"Esto funciona mal"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement