r/learnpython • • Feb 20 '21

What are you having difficulty learning or are currently struggling to learn?

I'm curious what the community here has difficulty with when it comes to learning Python. Partly because I want to see if the more experienced community here (or myself) can help point you into the right direction. . . but also because I'm trying to come up with video tutorial ideas for future content and would love to hear from Python learners what would be most useful to dedicate our time on.

I'm looking forward to hearing what you guys have to say!

417 Upvotes

324 comments sorted by

View all comments

Show parent comments

2

u/MaraudingAvenger Feb 20 '21

so you might have some luck exploring difflib -- it's a little clunky, but it'll show you differences between big strings pretty well, when there's a change in hash.

As for storage of big strings, you have a ton of options -- if you want to save the files as text and zip them up using the zipfile lib, that is an option. If you want a cohesive data structure, you could turn them into a dict and use json to serialize them. Look into serialization methods (on the Googles) and find out which one suits you best!

2

u/alfa80211 Feb 20 '21

“Serialization”, cool never heard of this term. Thanks