Python - Syntax Numbers

I’m a little confused with this numbers exercise. Am I correct to assume that integers and floating-point numbers are only assigned to variables? Everything else would be considered a literal? Here is the exercise

Variables are only references, and any object can be assigned to a variable. If the number is written into the code, it is a literal. Same applies to string literals, list literals, dictionary literals, boolean literals, or None as a literal.

1 Like