Lab_1

Here is my lab 1

In this lab we were ask to apply the basic functions of python. The first step was to understand how to use an integer and a string in the program and what was the proper way of putting them. The strings have to be in quotations marks in order for the program to recognize them. If they are not in quotations the program will assume that it’s an integer and will display an error message.  All an important factor to remember is to always save your work for the next time you use the program, by saving the program will store all the modifications of the previous sections and apply it to the new section.

 

Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>> 1+1
2
>>> print (‘hello world’)
hello world
>>> 1+1.2
2.2000000000000002
>>> print hello
SyntaxError: invalid syntax (<pyshell#3>, line 1)
>>> ================================ RESTART ================================
>>>
hello world
goodbye
>>>

 

 

Restorative dentistry