Hello World!
This time I will propose a basic 'game' using Jupyter (jupyter.org). This code will show you three different coins that you could use to see if the one that have to answer is able to understand the value of money... right? This could be the foundation for a more complex game/test with this purpose.
Here is the code and a possible output
from IPython.core.display import Image, display
e = [Image("img/{}.png".format(x)) for x in ("1","2","5","10","20","50","100")]
from random import randint
def money(x):
for i in range(x):
display(e[randint(0,6)])
money(3)
See ya
Comments
Post a Comment