Day 042 - Project 42 : MokéBeasts Single Dex

If you have any questions, comments or issues with this project please post them here!

Hi all! It’s my codes for Day42 challenge/project.
I have a small alternative way, using another library to change the color. Have a look and let me know how you think!


I got an error on day 42. It said that the video was permanently moved to a new website. I can’t even go into day 42!

@QihongZhang, just to let you know, your most was moved into a more relevant topic. Please make sure to check what topic you’re trying to post in because it seemed to be unrelated to your problem.


Hi @QihongZhang thanks for your message.

Can you check this link? this is my copy of Day 42 and the video appears to work ok.

If you are still having issues can you please share a screenshot of what you see?

Hi! It’s hard to explain but for some reason my code keeps showing that there is an error on the print( ) function and whenever I delete it the syntax error goes to the next line. Its also on a specific line to where I had coded variable for the information (HP,MP, name etc). It indents my print functions with 3 and 1/2 spaces. I then copied and pasted the code to a new repl page and it gave me a different syntax error saying my variable ‘HP’ perhaps needed a comma. Help please! (Idk how to upload my code so that would also be helpful to know)

Hey @TC50 !

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

1 Like

Not sure am I doing correctly? I am struggling at the #4 of the challenge (checking the beast type and change the color)

MokéBeast = {"name": None, "type": None, "special move": None, "staring HP": None, "starting MP": None}


def Color(type):
  if type == "fire":
    print("\033[31m", end="")
  elif type == "water":
    print("\033[34m", end="")
  elif type == "air":
    print("\033[37m", end="")
  elif type == "earth":
    print("\033[33m", end="")
  elif type == "spirit":
    print("\033[32m", end="")
  return type


for name, value in MokéBeast.items():
  MokéBeast[name] = input(f"{name}:")
for name, value in MokéBeast.items():