For my first lab report the first thing i did was downloaded the program Python. After i downloaded it i started my lab it told me to type 1 + 1 which gave me the answer 2 , then i typed in print ‘Hi Mom’ and it appeared Hi Mom. Then i typed in 1 +1.2 and gave me 2.2 , i typed in print hello and it told me ERROR ! The reason why was because the word hell didn’t had quotes around it so that’s why it showed up as an error. I had to open a new window which is called an editor window which i can type my first program, i typed in print ‘Hello World’ and print ‘Goodbye’ then went to RUN and clicked run module and when i run the module both hello world and goodbye appeared in python shell. And so that was the end of my first lab report i really had fun and understanding how to use python and how errors occur i cant wait to do my next lab.
code i used :
1+1
print ‘ Hi Mom’
1+1.2
print ‘ Hello ‘
print ‘ Hello World ‘
print ‘ Goodbye ‘