We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Variable Names

Variable names must not have spaces. They're continuous strings of characters.

The creator of the Python language himself, Guido van Rossum, implores us to use snake_case for variable names. What is snake case? It's just a style for writing variable names. Here are some examples of different casing styles:

NameDescriptionCodeLanguage(s) that recommend it
Snake CaseAll words are lowercase and separated by underscoresnum_new_usersPython, Ruby, Rust
Camel CaseCapitalize the first letter of each word except the first onenumNewUsersJavaScript, Java
Pascal CaseCapitalize the first letter of each wordNumNewUsersC#, C++
No CasingAll lowercase with no separationnumnewusers...just don't do this

To be clear, your Python code will still work with Camel Case or Pascal Case, but can we please just have nice things? We just want some consistency in our craft.

If you won't use snake case for you, do it for me. I beg you.