{"id":33240,"date":"2023-09-07T18:53:33","date_gmt":"2023-09-07T18:53:33","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/the-fundamental-concepts-in-computer-programming-basic-debugging-techniques-and-reproducing-simple-calculations-in-python\/"},"modified":"2023-09-07T18:53:33","modified_gmt":"2023-09-07T18:53:33","slug":"the-fundamental-concepts-in-computer-programming-basic-debugging-techniques-and-reproducing-simple-calculations-in-python","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/the-fundamental-concepts-in-computer-programming-basic-debugging-techniques-and-reproducing-simple-calculations-in-python\/","title":{"rendered":"the fundamental concepts in computer programming, basic debugging techniques, and reproducing simple calculations in Python"},"content":{"rendered":"<p>Read:<\/p>\n<div>\n<ul>\n<li><span style=\"font-size: 1rem; cursor: auto; color: inherit;\">Downey, A. (2015).&nbsp;<\/span><em style=\"font-size: 1rem; cursor: auto; color: inherit;\">Think Python: How to think like a computer scientist.<\/em><span style=\"font-size: 1rem; cursor: auto; color: inherit;\">&nbsp;Green Tea Press.&nbsp;<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><a style=\"cursor: auto;\">https:\/\/greenteapress.com\/thinkpython2\/thinkpython2.pdf<\/a><\/span><\/li>\n<\/ul>\n<\/div>\n<div><a style=\"font-size: 14.941px; cursor: auto;\">Watch:&nbsp;<\/a><\/div>\n<div>\n<ul>\n<li><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 1rem; cursor: auto;\">Iqbal, W. (2020, July 27).&nbsp;<\/span><em style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 1rem; cursor: auto;\">How to install Python 3.8.5 on Windows 10 [2020] &#8211; YouTube.&nbsp;<\/em><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 1rem; cursor: auto;\">[Video]. YouTube.&nbsp;<\/span><a data-auth=\"NotApplicable\" style=\"font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 1rem; cursor: auto;\"><span style=\"cursor: auto; color: inherit;\">https:\/\/www.youtube.com\/watch?v=yiCUmJon-5g<\/span><\/a><\/li>\n<\/ul>\n<div><\/div>\n<\/div>\n<div>For ASSIGNMENT:<\/div>\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">In this unit, we explored the fundamental concepts in computer programming, basic debugging techniques, and reproducing simple calculations in Python.&nbsp;<\/span><\/div>\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">Before completing this assignment, review the reading materials listed below:<\/span><br \/><\/span><\/div>\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\">\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"font-size: 16px; cursor: auto; color: inherit;\">a. Think Python: How to think like a computer scientist.&nbsp;<\/span><\/span><\/span><\/div>\n<\/blockquote>\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\">\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\">\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"font-size: 16px; cursor: auto; color: inherit;\">Review Chapter 1 &#8211; The Way of the Program (pp. 1 \u2013 8) and the examples presented in it.<\/span><\/span><\/span><\/div>\n<\/blockquote>\n<p>b.&nbsp;<span style=\"color: inherit; font-size: 14.8969px; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">For installing the IDLE development environment on UNIX:&nbsp;<\/span><\/p><\/blockquote>\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\">\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\"><p><span style=\"color: inherit; font-size: 14.8969px; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">Using Python on Unix platforms. (n.d.). Python Documentation.&nbsp;<\/span><a style=\"font-size: 1rem; font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; cursor: auto;\">https:\/\/docs.python.org\/3\/using\/unix.html.&nbsp;<\/a><\/p><\/blockquote>\n<\/blockquote>\n<p><span style=\"font-weight: bolder; font-size: 14.8969px; cursor: auto; color: inherit;\">For Windows, refer to<\/span><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">:&nbsp;<\/span><span style=\"font-size: 1rem; cursor: auto; color: inherit;\">Using Python on Windows. (n.d.). Python Documentation.<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><a style=\"font-size: 1rem; cursor: auto;\">https:\/\/docs.python.org\/3\/using\/windows.html<\/a><\/p>\n<div><span style=\"font-weight: bolder; font-size: 14.8969px; cursor: auto; color: inherit;\">For Mac, refer to<\/span><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">:&nbsp;<\/span><span style=\"cursor: auto; color: inherit;\">Savage, B. (n.d.). 5. Using Python on a Mac.&nbsp; Python Documentation<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><a style=\"cursor: auto;\">https:\/\/docs.python.org\/3\/using\/mac.html<\/a><\/div>\n<div><\/div>\n<div>There are 2 parts to this assignment:<\/div>\n<div><\/div>\n<div><b><u>PART 1<\/u><\/b>: LEARN FROM YOUR MISTAKES!<\/div>\n<div>\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"font-weight: bolder; font-size: 1rem; cursor: auto; color: inherit;\"><span style=\"font-weight: 400; font-size: 1rem; cursor: auto; color: inherit;\">In Chapter 1, section 1.9 Exercises (pg. 7) of your textbook, Exercise 1.1 suggests making mistakes when experimenting with a new programming feature. This kind of experiment helps you remember what you read, and also get information on the error messages.<\/span><\/span><\/span><\/div>\n<\/div>\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"font-weight: bolder; font-size: 1rem; cursor: auto; color: inherit;\"><span style=\"font-weight: 400; font-size: 1rem; cursor: auto; color: inherit;\"><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">Answer the following questions (a) to (d).by explaining some frequently occurring errors.&nbsp;<\/span><span style=\"font-size: 1rem; cursor: auto; color: inherit;\">To help you answer the questions, write the code in Python and run it to produce output for each of the questions.&nbsp;<\/span><br \/><\/span><\/span><\/span><\/div>\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\">\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"font-weight: bolder; font-size: 1rem; cursor: auto; color: inherit;\"><span style=\"font-weight: 400; font-size: 1rem; cursor: auto; color: inherit;\"><span style=\"font-size: 1rem; cursor: auto; color: inherit;\">a.&nbsp;<\/span><\/span><\/span><\/span><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">If you are trying to print your name, what happens if you leave out one of the quotation marks or both? Why?<\/span><\/div>\n<div><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">b. What is the difference between * and ** operators in Python? Explain with the help of an example.<\/span><\/div>\n<div><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">c. In Python, is it possible to display an integer like 09? Justify your answer.<\/span><\/div>\n<div><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">d. Run the commands type(&#8217;67&#8217;) and type(67). What is the difference in the output? Why?&nbsp;<\/span><\/div>\n<\/blockquote>\n<div><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">Copy and paste both the code and the screenshot of the output for each of the questions in a Word document<\/span><br \/><\/span><\/span><\/span><\/div>\n<div><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><br \/><\/span><\/span><\/span><\/span><\/div>\n<div><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><u style=\"font-weight: bold;\">PART 2<\/u>:&nbsp;<\/span><\/span><\/span><\/span><\/div>\n<div><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">Write a Python program for each of the following questions (a) to (d).<\/span><br \/><\/span><\/span><\/span><\/span><\/div>\n<blockquote style=\"margin: 0 0 0 40px; border: none; padding: 0px;\">\n<div><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">a. To multiply your age by 2 and display it.&nbsp; For example, if your age is 16, so 16 * 2 = 32 b<\/span><\/span><\/span><\/span><\/span><\/span><\/div>\n<div><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">b. Display the name of the city, country, and continent you are living in.<\/span><\/div>\n<div><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">c. To display the examination schedule (i.e., the starting and the ending day) of this term.<\/span><\/div>\n<div><span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;\">d. Display the temperature of your country on the day the assignment is attempted by you.<\/span><\/div>\n<\/blockquote>\n<div><\/div>\n<p><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">Add the<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><span style=\"font-weight: bolder; font-size: 14.8969px; cursor: auto; color: inherit;\">Python codes and<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">screenshots of the<\/span><span style=\"font-weight: bolder; font-size: 14.8969px; cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>related outputs<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">in the same Word document created for Part 1 submissions.&nbsp;<\/span><span style=\"background-color: var(--color-6); color: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 14.8969px; cursor: auto;\">Also,&nbsp;<\/span><span style=\"background-color: var(--color-6); color: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-weight: bolder; font-size: 14.8969px; cursor: auto;\">explain what you learned<\/span><span style=\"background-color: var(--color-6); color: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-family: Inter, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; font-size: 14.8969px; cursor: auto;\"><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>from the results of each experiment in part 2 questions.&nbsp;<\/span><\/p>\n<div><span style=\"cursor: auto; color: inherit;\">The code and its output must be explained technically. The explanation can be provided before or after the code. The descriptive part of your response must be at least 200 words.<\/span><\/div>\n<div><\/div>\n<div><b>References<\/b>:<\/div>\n<div><span style=\"font-size: 14.8969px; cursor: auto; color: inherit;\">Downey, A. (2015). Think Python: How to think like a computer scientist. Green Tree Press.<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><a style=\"font-size: 14.8969px; cursor: auto;\">https:\/\/greenteapress.com\/thinkpython2\/thinkpython2.pdf<\/a><\/p>\n<div><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\"><br \/><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Read: Downey, A. (2015).&nbsp;Think Python: How to think like a computer scientist.&nbsp;Green Tea Press.&nbsp;&nbsp;https:\/\/greenteapress.com\/thinkpython2\/thinkpython2.pdf Watch:&nbsp; Iqbal, W. (2020, July 27).&nbsp;How to install Python 3.8.5 on Windows 10 [2020] &#8211; YouTube.&nbsp;[Video]. YouTube.&nbsp;https:\/\/www.youtube.com\/watch?v=yiCUmJon-5g For ASSIGNMENT: In this unit, we explored the fundamental concepts in computer programming, basic debugging techniques, and reproducing simple calculations in Python.&nbsp; Before completing [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[211],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/33240"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=33240"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/33240\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=33240"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=33240"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=33240"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=33240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}