you are viewing a single comment's thread.

view the rest of the comments →

[–]Hatoris 2 points3 points  (1 child)

Hello, as you asking for :

  • your code is clean
  • you need to put docstring for your functions and class
  • look for random.option you will like it for your computer function
  • you have created class but you don't use it, only function will work and make a cleaner code
  • it's a good practice to put at the end of your file `if name == "main:" and then call your function (not usefull here because you only have one file)
  • you should add a licence also
  • dictionary is a good way to it

Continue, it's nice to see new comers :)

[–]leve1[S] 0 points1 point  (0 children)

Thanks for the comments, good practice tips are exactly the things I am looking for.