Question: In the code cell commented as # Question 1: in the .ipynb file template, generate Python code to execute the following instructions exactly as they

In the code cell commented as # Question 1: in the .ipynb file template, generate Python code to execute the following instructions exactly as they are written:

Create five variables to store (note: it doesnt matter what you name the variables):

A string with your name. An integer with your age. A float with a value of 2.9 (this will represent the diameter of a hypothetical circle). A float with the value of pi = 3.14159265359. A float representing the area of a hypothetical circle where area = pi * radius ^ 2 NOTE: radius = diameter / 2

Use those variables in a "print" command to display a sentence somewhat like the following: "My name is [name]. I am [age] years old. And the area of the circle is [area]"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!