Question: Spring 2 0 2 4 Part 2 . ( 7 5 pts , 2 5 pts each ) Using the Blender Scripting Workspace text editor,
Spring
Part pts pts each
Using the Blender Scripting Workspace text editor, write a Python script to calculate a sphere's volume and surface area from its radius and assign it as a variable. I have provided the code lines needed for the program. Please use the structure example below to format the program so the interpreter can run it Please turn in
Problempy
Helpful Hint:
Remember, Python code has a specific format for a function; all code under the function definition is indented:
Structure Example:
def prob:
line
line
line
line
line
line
prob
Define your function
def prob:
Use the input function to get the radius value from the user and assign it to
eval:
Assign the variable pi
Assign the variable area
area
Assign the variable volume
volume
Use the print function to print out the Volume
printvolume
Use the print function to print out the Area
printarea
Execute function prob
prob
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
