How do I make a game in Python ?

Cai Gengyang gengyangcai at gmail.com
Sat Aug 6 17:51:24 EDT 2016


As in, any recommended websites that helps users create complex games in Python ?


On Sunday, August 7, 2016 at 5:41:25 AM UTC+8, Ian wrote:
> On Aug 6, 2016 11:57 AM, "Cai Gengyang" <gengyangcai at gmail.com> wrote:
> 
> How do I make a game in Python ?
> 
> 
> import random
> 
> answer = random.randint(0, 100)
> while True:
>     guess = input("What number am I thinking of? ")
>     if int(guess) == answer:
>         print("Correct!")
>         break
>     print("Wrong!")
> 
> And now you've made a game in Python.
> 
> 
> On Aug 6, 2016 11:57 AM, "Cai Gengyang" <gengyangcai at gmail.com> wrote:
> 
> > How do I make a game in Python ?
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >




More information about the Python-list mailing list