Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1. Suppose you can't remember how many planets there are in our solar system. Your TA, who went to school in the 1990s, says
Question 1. Suppose you can't remember how many planets there are in our solar system. Your TA, who went to school in the 1990s, says the answer is 9. In the next cell give the name number_of_planets to the number 9. [ ] number_of_planets = 9 Run the next cell to test your answer. You should find that the test fails, and it provides a hint about what went wrong. Fix your answer in the previous cell, following the hint, so that the test passes. Code + Text Question 2. A famous fact in mathematics is that (1 + gets very close to the number e, which is roughly 2.718, when n is large. Use this fact to compute an approximation to e, called roughly_e. Your approximation should be correct to at least 5 decimal places. U roughly_e = 2.71828 roughly_e 2.718 Question 3. In the previous question, you might have noticed that you had to type in the value of n twice when you tried different values (once as 1 and once as **n). You might have even accidentally used 2 different values. Redo the code in the cell below, giving your estimate of e the name also_roughly_e. Instead of writing the value of n twice, give it the name n in your Python code, and then use that name in your expression for also_roughly_e. []n-... also_roughly_e also_roughly_e
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