From the course: Python Data Science Mistakes to Avoid
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Naming vaguely - Python Tutorial
From the course: Python Data Science Mistakes to Avoid
Naming vaguely
- [Narrator] A programing mistake you want to avoid is naming things vaguely. For example, let's say I have information about the temperatures in Fahrenheit for seven consecutive days in Santa Barbara, California, and Memphis, Tennessee. I stored the data for Santa Barbara in a variable named T1, as shown here. And I stored the data for Memphis in a variable named T2, as shown here. The names I gave these variables are vague and do not indicate the nature of the data stored inside these variables. Now, say that these variables are used in a project that I am working on with teammates. Let's say that the variables were created in the very beginning and there is a point much later on in the project where the section of code here is written. Now let's say my teammates and I are going over our code from start to end. By the time we get to this section, there's a chance that we may not remember exactly what T1 and T2…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.