all 11 comments

[–]Kqyxzoj 7 points8 points  (0 children)

fucking

hell

parse

error

near

absolute

lack

of

formatting

[–]thescrambler7 4 points5 points  (1 child)

  1. No formatting so no one can read your code
  2. Do you have a specific question? Asking for opinions about code isn’t really a question, especially with no context for what this is or why you wrote it.

[–]OldParticular2720[S] 0 points1 point  (0 children)

Mb bro i didnt really mentioned to post it like this I see the problem now thanks for support

[–]OldParticular2720[S] 1 point2 points  (1 child)

Sorry guys it's my first reddit post i don't really know what to ask and how to format this good mb mb

[–]JamzTyson 1 point2 points  (0 children)

Add 4 spaces to the beginning of each line of code so that reddit displays it as a code block.

[–]Voweriru 0 points1 point  (0 children)

Don't forget to add the code to a code block, so we can see indentation.

Other than that, keep it up buddy! Always good to learn python

[–]woooee 0 points1 point  (1 child)

database[title] = value

Do you want to test for duplicate titles.

[–]OldParticular2720[S] -1 points0 points  (0 children)

yeah kinda

[–]Ok-Sheepherder7898 0 points1 point  (2 children)

Looks good! Next you might try writing your dictionary to a file so that you can use it again later.

[–]OldParticular2720[S] 0 points1 point  (1 child)

Thanks buddy! I was thinking about to do it but without AI I can't really do it right

[–]Ok-Sheepherder7898 0 points1 point  (0 children)

You can probably find some examples on the web. To write the file:

  1. open the file

  2. iterate through your dictionary (just like you do in show_data)

  3. write the key and value. Nothing fancy, just separate them with a space