Python Text

Let’s declare a variable in Python and assign it the value 25.

Explanation:

We created a burgers_ordered variable above and set it to be equal to the value 25. Now, anywhere in the code where we use this variable, it will not reference the word burgers or ordered ,but it will use the number 25 assigned to it. Take the print statement on the next line, we put the burgers created variable in the middle of the two text phrases, but the number 25 is printed instead — that’s because it contains the value 25 that can be referenced anywhere the burgers ordered variable is used.