Introduction to Programming using Python 1st Edition

Published by Pearson
ISBN 10: 0132747189
ISBN 13: 978-0-13274-718-9

Chapter 2 - Elementary Programming - Section 2.3 - Reading Input from the Console - Check Point - MyProgrammingLab - Page 35: 2.4

Answer

syntax error

Work Step by Step

If a user enter $5a$ while executing the following code: radius = eval(input("Enter a radius: ")) The $eval()$ function eill evaluate the value into integer so "a," which is not an integer value, so it will generate following error in the compiler: SyntaxError: unexpected EOF while parsing
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.