DEV Community

Discussion on: Codecademy Project Portfolio

Collapse
 
fractalis profile image
Scott Rallya

Fantastic job on this. There are no "straightforward apps", every app is a uniquely crafted piece of art that is the result of [hard] work, creativity, ingenuity, and application. Always take pride in the work you do, no matter how simple it might seem. Every piece of code you write leads you on the path of being a better developer.

So, I've been learning to use type annotations. While type annotations are optional in Python, they convey a lot of information. For example,


def  prompt_user(prompt: str) -> str
      name = input(prompt)
     return name.strip()
Enter fullscreen mode Exit fullscreen mode

Here we see a function that takes a prompt, which is of type string, and it returns a type string. This can be powerful in complex code bases and for type-checking and IDEs/intellisense. If you're looking for an additional challenge, I'd challenge you to convert your Codeacademy solution to use type annotations. That sounds like a fun challenge, now doesn't it?

Anyways, great job again on this! Hope to see more of your work in the future on here! Keep coding, and keep posting!