Question: Identify which type of error is occurring in this code, and what is causing that error. # Goal Add the 2 entered numbers together: 1
Identify which type of error is occurring in this code, and what is causing that error.
# Goal Add the entered numbers together:
x inputEnter a number:
y inputEnter another number:
printx y
Choice of : Syntax error, cannot give the input function a parameter
Choice of : Syntax error, colon inside of a string is not allowed
Choice of : Runtime error, you cannot add int's and strings together
Choice of : Runtime error, The user types in a number but it's saved as a string
Choice of : Logic error, the comment describes addition but the operation occurring is concatenation
Choice of : Logic error, printing the result of addition directly will result in None being printed out
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
