As an example, imagine that you were planning to drive from Chicago to Dallas. If you know how many miles per gallon your car gets, and how many miles it is, you can estimate the number of gallons it will take.
The Codelens allows us to see the value of each variable in a program as it runs. But normally if we run a program we do not get to watch what is happening on each line. However, we can check what values are in variables by printing them out.
The function print can take an input (a variable name inside of parentheses) whose value will be displayed. The print function can also print a string (like "Cost to get from Chicago to Dallas") which is a sequence of characters inside a pair of double quotes as seen in line 8. It will print the exact contents of the string. This is useful for explaining the values that you are printing.
You can also print multiple things on one line by putting them all inside the parentheses after print, separated by commas. You can see this on line 12 in the program below.
Notice that in the code above we are using camel case variable names like costPerGallon and costTrip. When using this style, you have to be careful about capitalization - costperGallon is a different name than costPerGallon. Try changing just the first copy of costPerGallon below to costpergallon and then run the code to see what happens.