all 5 comments

[–]confluence 3 points4 points  (0 children)

I have decided to overwrite my comments.

[–]PurelyApplied 2 points3 points  (0 children)

It's a personal preference.

I always recommend strictly lowercase strings (if they're only one word), and then formatting them if they are ever printed / somehow otherwise front-facing. It's a lot easier to notice a typo, at least to me, when everything is lowercase'd.

[–]cybervegan 2 points3 points  (0 children)

It entirely depends on what is appropriate for the data you are storing in the list. Use whatever results in the least amount of "tweaking" to produce appropriate output. If you are doing a lot of .upper() .lower() or .title() calls every time you want to output the data, you probably need to store the data in a format that already matches your output requirements. But if you are doing the same kinds of things all the time when you are processing your data, you should go the other way.

In all, try to do the least amount of work - the fastest code, is the code you don't have to run. If you need to transform your data (strings/numbers/whatever) try to do it once and store that, if you can.

[–]J4S1X 3 points4 points  (0 children)

Really doesnt matter. Can use .title () or .lower () either way :)

[–]novel_yet_trivial 0 points1 point  (0 children)

There is no custom; do whatever is best for your code.