How do I name my variables properly?

Asked by emeka_nwankwo · 7 months ago

1 Answer

25
amorebise · 7 months ago Top Answer

Be descriptive! Instead of x = 500, use price_in_naira = 500. It makes your code so much easier to read.

In Python, we use 'snake_case'—all small letters with underscores between words. It’s the standard way professional Python coders write.

Log in to add a comment.