Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python 3 to solve the following activity #1. -See attachements 1. Also, I have attached an example of the code that needs to

Please use python 3 to solve the following activity #1. -See attachements

1. Also, I have attached an example of the code that needs to be completed.

2. The attachements contain the lesson overview and skeloton code.

3. Please comment throught code.

image text in transcribedimage text in transcribedimage text in transcribed

Notebook 04:Functions Overview The goal of this assignment is to allow you to practice defining and utilizing functions in the Python programming language. To record your solutions and answers create a new Jupyter Notebook titled Notebook04.ipynb and use this notebook to complete the following activities and answer the corresponding questions. Make sure you label your activities appropriately. That is for Activity 1, have a header cell that is titled Activity 1. Likewise, use the Markdown cells to answer the questions (include the questions above the answer). This Notebook assignment is due Thursday night before midnight (September 21th) and is to be done individually. Activity 1: Drawing Shapes For this activity, you will build two functions to generate SVG (Scalable Vector Graphics) code to draw a circle and a square. You will then use these functions inside a third function that will draw one of the shapes based on interactive user inputs provided by Jupyter's interaction module. As described in Notebook 01, SVG is a markup language that allows us to draw HTML shapes. In Jupyter, we compose the SVG text inside of strings, and then use the display and HTML functions to render (ie. draw) the shapes inside our web browser: html = svg heights"100" width="100" erect x="25" y="25" width="50" height-"50" display (HTML (html)) stroke-"orange" strokeidth="3" fill-"blue" /> This activity will require you to program two functions that generate the SVG code corresponding to each shape based on different parameters passed to the functions

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions