getting started temp eval(input'enter temperature in celsius')print'in fahrenheitthat is ' / *temp+ one of the major purposes of variable is to remember value from one part of program so that it can be used in another part of the program in the case abovethe variable temp stores the value that the user enters so that we can do calculation with it in the next line in the example belowwe perform calculation and need to use the result of the calculation in several places in the program if we save the result of the calculation in variablethen we only need to do the calculation once this also helps to make the program more readable temp eval(input'enter temperature in celsius')f_temp / *temp+ print'in fahrenheitthat is 'f_tempif f_temp print'that temperature is above the boiling point 'if f_temp print'that temperature is below the freezing point 'we haven' discussed if statements yetbut they do exactly what you think they do second example here is another example with variables before reading ontry to figure out what the values of and will be after the code is executed = = = + = + = = after these four lines of code are executedx is is and is one way to understand something like this is to take it one line at time this is an especially useful technique for trying to understand more complicated chunks of code here is description of what happens in the code above starts with the value and starts with the value in line variable is created to equal +ywhich is then the value of is changed to equal one more than it currently equalschanging it from to nextx is changed to the current value of ywhich is finallyy is changed to note that this does not affect so at the endx is is and is