Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help in this question... Please provide complete answer Programming Python code: In programming, there are two kinds of errors: syntax and logical errors.
I need help in this question...
Please provide complete answer
Programming Python code: In programming, there are two kinds of errors: syntax and logical errors. Syntax errors are typos that make your code un-runnable. Logical errors are when the program runs, but does not produce the expected output. 1) Please review the Python 3 code snippet below. In this snippet, there are two syntax errors and two logical errors. For your answer, please describe all four issues you found and submit a fixed code snippet that will make running the program run as expected. Print out the correct average of the two numbers that are inputted by the user. # average.py det find-average(a: b) " find average will return the average of both a and b, which are floats" return x + y/2 x-float( input("Please enter a number ")) y float( input(Please enter another number: ")) average find_average(x y) print(average)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started