Question: In Python 3 please Exercise 1. Turtle Drawing - Rectangle (to be explained during lab) Create a program that takes the width and the height

In Python 3 please
Exercise 1. Turtle Drawing - Rectangle (to be explained during lab) Create a program that takes the width and the height of a rectangle as command line arguments, and draws the corresponding rectangle using the Turtle module. Some of the main functionalities that a turtle graphics can perform are: forward(x)/ backward(x): it moves forward/backward by x pixels while drawing a line. left(x)/ right(x): it rotates by x degrees to the left/right. Exercise 2. Simple for Loops Create a program (for loop) that prints the squares of all the numbers from 1 to 10 separated by space, as follows: 1 4 9 16 25 36 49 64 81 100 Add another for loop to write the squares 100 81 64 49 36 25 16 9 4 1 the numbers, starting from 10 and going down to 1: Add another for loop to write all the odd numbers between 1 and 20, separated by space. Note that: print (any text, end = "") will end the output with empty string instead of a new line. It is useful when you want to use more than one print statement, but the output should be on the same line. Exercise 3. Factorial Write a program that takes an integer n as a command line argument, calculates, and displays its factorial. Exercise 4. Triangle of Stars Create a program that takes a positive integer n from the user and displays a triangle of stars with n lines. For example, the following triangle is produced when the user enters 4 as value for n: * *** ***** *******
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
