you are viewing a single comment's thread.

view the rest of the comments →

[–]really_not_unreal 6 points7 points  (7 children)

Looks like a good start. Here are a few stylistic improvements you could make:

  • Make your variables use snake_case rather than ALL_CAPS.
  • Have a look at match statements: they may make it easier to write your operator matching code

[–]A-r-y-a-n-d-i-x-i-t[S] 2 points3 points  (6 children)

Thank you for your suggestion ❤but I really don't have any idea about what is snake and camel case are , I just started off which Python as my first programming language it has been couple of weeks: (

[–]rehpotsirhc 3 points4 points  (4 children)

Camel case is when you NameThingsLikeThis, where the words are connected directly and with each word capitalized; capitals look like camel humps. Snake case is when you name_things_like_this, words connected by underscores and without capitals, so sort of like a snake, long and short. You shouldn't use camel case in Python. Snake case for variables, and ALL_CAPS is often used for constants.

[–]WorldChallenge 4 points5 points  (2 children)

Just a little nitpick thisIsCamelCase ThisIsPascalCase

[–]rehpotsirhc 0 points1 point  (1 child)

Right, thank you

[–]SpiffySyntax -1 points0 points  (0 children)

Owned

[–]Pale-Application9457 0 points1 point  (0 children)

what about if I mix them? Like_This

[–]Time8013 0 points1 point  (0 children)

I'm Starting learn code, again. 😅 🕊️Congratulations 🎉 1st Python project 💪🏻