1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Python for Finance

Connected

Exercise

Creating different types of variables

Variables in Python hold a value that may consist of varying data types. Variable names can contain letters, underscores, and numbers.

Let's create three types of Python variables that might be useful in finance.

Instructions 1/3

undefined XP
    1
    2
    3

Assign the string 'Apple' to the variable company_1.