Get startedGet started for free

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.

This exercise is part of the course

Introduction to Python for Finance

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create company_1
company_1 = ____
print(company_1)
Edit and Run Code