i have a basic foundation of python where i know the syntax and basic programs.
now i m trying to build projects from the book big books of small python projects daily for 2-2.5 hours
firstly i see the problem and code the working project for the given problem
then i read the book's code and just write it as it is from the book.. is this the correct way to learn from the book's code? if not then what's the correct way?
for reference,
this is what i do, for 6th project
i firstly made a working project by myself, then i copied the book's code whilst understanding it side by side,
my first try without book: https://github.com/BadDreams34/python-small-projects/blob/main/caesar_cipher.py
book's code : https://inventwithpython.com/bigbookpython/project6.html
my book's copied code: https://github.com/BadDreams34/python-small-projects/blob/main/caesar_cipher_third.py