r/PythonLearning • • 12d ago

Learning Project: Word-level Markov chain text generator

5 Upvotes

5 comments sorted by

View all comments

•

u/Sea-Ad7805 12d ago

Run program above by clicking Memory Graph Web Debugger and see its state change step by step.

1

u/[deleted] 12d ago

[removed] — view removed comment

1

u/Sea-Ad7805 12d ago

The Python runtime environment handles the state, I'm just visualizing it so students can learn how to think about it more easily.

1

u/[deleted] 12d ago

[removed] — view removed comment

2

u/Sea-Ad7805 12d ago

Yes, choosing the right data structure list, set, dict, ... for the implementation of logic is one way of doing that. Do a Data Structure and Algorithms (DSA) course after doing a general Python introduction course to learn more.