anonymous
  • anonymous
Hi theret Is there any body who can tell me what is the problem in this small python code? or How it should looks like? def eval_loop(): while True: n = raw_input('Enter whatever:\n') if n == 0: break else: return eval('n')
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
The return statement at the end should be indented as the 'break' statement
rsmith6559
  • rsmith6559
In the return statement, you're evaluating the letter n, not the variable n. Watch the quotes.
anonymous
  • anonymous
No no no... quotes are fine... that's the syntax of the eval!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
did u forget one of these ; ; ; ; ; ; ; ;

Looking for something else?

Not the answer you are looking for? Search for more explanations.