learning journal unit 1

Part 1:
LEARN FROM YOUR MISTAKES! This holds true not only in real life but also at the initial stages in programming, so you’ll be surprised to see that we’ll be asking you to make mistakes here.
In Chapter 1, section 1.9 Exercises of your textbook, Exercise 1.1 recommends that you try to make mistakes when experimenting with a new programming feature.
This kind of experiment helps you remember what you read; it also helps when you are programming because you get to know what the error messages mean. It is better to make mistakes now, on purpose, rather than later, accidentally. (Downey, 2015, 7)
For this Learning Journal, first, answer the following questions based on Exercise 1.1. To help you answer the questions, run sample code to produce output for each question. Copy and paste both the code and the output using a Word (or Word-compatible) document. No screenshots, please.
If you are trying to print a string, what happens if you leave out one of the quotation marks or both and why?
You can use a minus sign to make a negative number like -2. What happens for each of the following and why?
>>> 2++2
>>> 2–2
>>> 2+-2
>>> 2-+2
In math notation, leading zeros are OK, as in 02. What happens if you try this in Python? Why?
What happens if you have two values with no operator and a space between them? Why?
Part 2:
Describe at least three additional Python experiments you tried while learning Python language in Chapter 1. In the same Word document used in Part 1, add the following:
include Python code and screenshots of your output.
explain what you learned from the results of each experiment.
The code and its output must be explained technically. The explanation can be provided before or after the code, or in the form of comments within the code. For code modification type of questions, always mention or clearly highlight the part which is modified, along with the reason stated, as a code comment. The descriptive part of your response must be at least 200 words.
If you use an informational source, be sure to identify the source and share the link to the source you used.

reference
Downey, A. (2015). Think Python: How to think like a computer scientist. Green Tree Press.

Last Completed Projects

topic title academic level Writer delivered