Module 1
Variable names
Giving good names to your data.
Name your variables clearly
You can choose almost any name for a variable, but some rules apply. Names can contain letters, numbers, and underscores. They cannot start with a number. They cannot contain spaces.
PythonValid variable names.
sample_name = "Control" temperature_1 = 30 _private = "hidden"
→
PythonNames cannot start with a number.
# This would cause an error: # 1st_sample = "A"
→
Try it
Use descriptive names. sample_name is better than s. temperature_celsius is better than t. Your code will be easier to read later.
Which is a valid variable name?