alexmojaki / futurecoder

100% free and interactive Python course for beginners
https://futurecoder.io/
MIT License
1.31k stars 138 forks source link

Error handling, spots for docstrings and differentiating 'message' and 'messages' variables in question_wizard.py #446

Open Taehyun-Alex opened 10 months ago

Taehyun-Alex commented 10 months ago

Enhancements for code clarity and consistency within the Python files

Details

  1. Error handling messages

    • SyntaxError in function, 'wrapped_callback' could use a detailed error message for better clarity image
    • ValueError in function input_callback could use a detailed error message for better clarity image
  2. Docstrings for Python codes

    • The functions throughout the Python files could use docstrings for a better understanding of the code.
  3. Variable naming consistency in question_wizard.py

    • In the question_wizard_check function, we have both 'messages' and 'message' as variables. Ensure consistency in variable names to avoid confusion.