code:
#spiral patterns using for loop and turtle and turtle used for
draw patterns.
#import turtle.
from turtle import *
setup(500,500) #make window of size 500*500 pixels
t1 = Turtle() # let make a tutrle to build graphics
t1.hideturtle() # intitally hide turtle
for i in range(10,110,5): # loop from point 10 pixel and step size
5 upto 110 pixels
t1.forward(i) # move forward i pixels
t1.left(90) # move counter clockwise of 90 degree for square 90
degrees
screenshot:


if you want color then code is:
#spiral patterns using for loop and turtle and turtle used for
draw patterns.
#import turtle.
from turtle import *
setup(500,500) #make window of size 500*500 pixels
t1 = Turtle() # let make a tutrle to build graphics
t1.hideturtle() # intitally hide turtle
t1.color("blue") #for color blue
for i in range(10,110,5): # loop from point 10 pixel and step size
5 upto 110 pixels
t1.forward(i) # move forward i pixels
t1.left(90) # move counter clockwise of 90 degree for square 90
degrees
output:

(ON PYTHON IDLE 3.7.2) Write a code to draw the following pattern: Write a code to draw the following pattern:
Write a code using Turtle graphics to draw the plus sign. (On python idle 3.7.2)
I am having a hard time writing an IDLE code (Python 3.7.2) and I need help. Here are the parameters. 1. Write a program that will generate a random backpack. This program will have a menu that allows the user to continuously select between generating a new backpack, printing the current backpack, adding a given number of an item, removing a given number of an item or quitting. Every backpack will have a variable number of the following 7 items:...
With the use of python IDLE version 3.7.2, use the while loop that iterates 100,000 times. In the loop code, roll a pair of dice by generating(and summing) two random numbers in the range 1 through 6. Report to the user how many data points have been generated (i.e how many times the dice have been rolled), as in: successfully simulated 100,000 dice rolls. Create a histogram of the dice rolls showing how many times a 2 was rolled, how...
Python 3.7.2 for language Please comment for each line of code good naming is important 1. Answer the question: what is the Python regular expression pattern that would match a hex color (https://en.wikipedia.org/wiki/Web_colors ) (for example, the pattern that would match an email address is '[\w.-]+@[\w.-]') Write an algorithm for step 3. As part of your algorithm, be sure to describe the pattern you're using to find the win/loss result for each game. Write a program that looks at the...
IN PYTHON USING IDLE PLATFORM PLEASE ALSO POST CODE TO COPY PLEASE Write a PYTHON Program that will ask the user for a base number then the program should display the multiplication table of that number up to 12.
Using Python 3.5.2 and IDLE Write the code for a modified game of the card game crazy eights (much like a game of UNO, where the card played is now on top of the deck and its number or face value is now what is playable for the next player). Write the code to be a 2 player game with any 8 card being able to input a new face value to play on the discard pile. Rules: Use a...
write in python idle Write a full python program that asks the user to type in 10 words using a loop, prompting the user for each word with a number. The program then displays the longest word and the shortest word the user typed in.
Python 3.7.2 Write a function file_copy that takes two string parameters (in_file and out_file) and copies the content of in_file into out_file. Assume that in_file exists before file_copy is called. For example, the following would be correct input and output: >>> file_copy('created_equal.txt', 'copy.txt') >>> copy_f = open('copy.txt') >>> copy_f.read() 'We hold these truths to be self-evident,\nthat all men are created equal\n
python
Write a Python program to construct the following pattern, using a nested for loop. * * * * * * * * * * * * * * * * * * * * * * * * * * *
Write a simple Python code to draw a line (y=10x). The plot should have the following labels in the x-axis, y-axis, and a title.