Aug 28

Lecture Overview

I will be going through the Python Introduction today and next time. The topics are numbers, variables, strings, and lists.

Data Storage

Data is stored in memory and python supports several types of data. Data in python is stored inside a variable. Data can be entered either directly in the code, read from an input/output device, or be the result of some computation.

Exercises

x = input("Enter a number: ")
y = input("Enter another number: ")
z = x + y
print("The sum is", z)

Run the above code to make sure it works. Next, change the program so that it prints the difference between the two numbers that are entered.