EMT1111

Name                                      Date                         Class code EMT1111  section#

Objective: introduction to Python

Parts List / Equipment

Theory/Math rules you followed:  “In this lab I used the principles of commutative property (a+b = b+a), associative property (like (a+b)+c = a+(b+c)  or   (ab)c = a(bc)   etc.), and distributive property (like  a(b+c) = ab + ac   etc.)

Program itself Procedure: The steps taken were to open the software on my computer from the Programs menu (I used version 2 ; he/she used version 3) and started typing in the following code:

 

Tables Pictures, Diagrams, etc

Results

Conclusion

 

 

>>> print(C)

Traceback (most recent call last):

File “<pyshell#0>”, line 1, in <module>

print(C)

NameError: name ‘C’ is not defined

>>> C

Traceback (most recent call last):

File “<pyshell#1>”, line 1, in <module>

C

NameError: name ‘C’ is not defined

>>> C = 100

>>> C

100

>>> print(C)

100

>>>