Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Variable usage Bugs Identifier/ variable name Bugs String literal versus variable Bugs Arithmetic Bugs Reminder These are common bugs that people make when writing

image text in transcribed
. Variable usage Bugs Identifier/ variable name Bugs String literal versus variable Bugs Arithmetic Bugs Reminder These are common bugs that people make when writing code. Learning how to find them and how to fix them will help you greatly in this class. It is also good practice to try to understand code you have not written. That will again make you a better coder. Extra Note About variable names. The chapter listed all the Python keywords that cannot be used as variable names. There are others that you should also never use, such as input". Using 'input' as a variable can cause drastic results and freeze your environment. Fix the bugs in the code that is given. As in last week's lab, do not immediately fix all the bugs you see. Instead, run the program first as it is given Observe the error it is giving you. Then fix the first bug and run it again. Observe the next error message, fix it, and run it. Continue fixing the errors one at a time. Again the purpose is not to get the right answer", it is to give you experience and practice in recognizing certain types of errors that occur when they are not introduced on purpose 301267725124 0/25 LAR ACTIVITY 3.141: LAB 3D: More Code Debugging main.py Load default template 2. Fix the error in the lines belon 3 46-X Sy - tnput(int("Enter a number: >> xyy 7 print("Your number times 6 is", y) N Hint: Il x is 6 ond y is 9, this should print 54. 8 9 18 W Fix the errors in the code below 11 12 Istplace - input('Who got first place?) 13 Secondplace "Jonnet" 14 _3rdplace - John" 15 16 print("First place was", 1stplace," second place was". Secondploce," third place was.Brdoloce end." ") 17 MacBook Pro

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions