Lesson 4 of 55 · Python
Variables and Data Types
Duration: 20 minutes
Lesson 4 of 55 · Python
Duration: 20 minutes
None value.\n\npython\nage = 30 # int\nprice = 19.99 # float\nname = 'Alice' # str\nis_active = True # bool\nnothing = None # NoneType\n\nprint(type(age), type(price), type(name), type(is_active), type(nothing))\n\n\n### Naming Conventions\n- Use snake_case for variable and function names (user_name).\n- Avoid Python keywords (class, def, if).\n- Constants are typically written in UPPER_SNAKE_CASE.\n\nWith variables under your belt, you can start storing and manipulating data.\n