Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions