Lab1 Python0
In this lab I basically downloaded and used the programming language Python for the first time. Learning the basics of python.
The Source Code is:
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>> 1+1
2
>>> print’Hi Mom’
Hi Mom
>>> 1+1.2
2.2
>>> print hello
Traceback (most recent call last):
File “<pyshell#3>”, line 1, in <module>
print hello
NameError: name ‘hello’ is not defined
>>>
The Source code is:
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>> 1+1
2
>>> print’Hi Mom’
Hi Mom
>>> 1+1.2
2.2
>>> print hello
Traceback (most recent call last):
File “<pyshell#3>”, line 1, in <module>
print hello
NameError: name ‘hello’ is not defined
>>> ================================ RESTART ================================
>>>
Hello World
>>> ================================ RESTART ================================
>>>
Hello World
Goodbye
>>>