Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python 3 Programing I have attached several files on how to used Python 3 to draw shapes. Please complete activity 1 in Python 3 and

Python 3 Programing I have attached several files on how to used Python 3 to draw shapes.

Please complete activity 1 in Python 3 and comment on code so I can understand what you did.

image text in transcribedimage text in transcribedimage text in transcribedimage 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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

Are the rules readily available?

Answered: 1 week ago

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago

Question

Explain the testing process of accounting 2?

Answered: 1 week ago