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
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