1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marshall27 [118]
4 years ago
5

How to create a checkerboard on Python turtle?

Computers and Technology
1 answer:
mafiozo [28]4 years ago
6 0

Answer:

here is my crude attempt:

import turtle

t = turtle.Turtle()

t.speed(0)

colors = ["black", "yellow"]

SQUARES = 8

SQUARESIZE = 20

def rectangle(color, s):

 t.begin_fill()

 t.pendown()

 t.color(color)

 for i in range(4):

   t.forward(s)

   t.right(90)

 t.end_fill()

 t.penup()

for row in range(SQUARES):

 for col in range(SQUARES):

   t.setpos(row*SQUARESIZE, col*SQUARESIZE)

   rectangle(colors[(row+col)%2], SQUARESIZE)

You might be interested in
Click cell i13 and calculate the agent commission using the base cost of the trip and a vlookup function that returns the commis
TiliK225 [7]
All you need to do is use excell.
5 0
3 years ago
Scott does not use privacy settings on his social media
likoan [24]

Answer:

ARREST HIM!!!

Explanation:

7 0
3 years ago
Read 2 more answers
If a class contains more than one constructor, describe how the computer determines the appropriate constructor. provide an exam
notsponge [240]
If a class contains more than one constructor, computer determines the appropriate constructor by matching all the attributes, like the number, data type and position. Here's the example where the row public AirConditioner(){} is the default constructor that can use <span>default settings or initialize manually (sorry for tabulation, not my fault)</span>:
<span>class AirConditioner{   enum ConditionerMode{      Automatic,  }   public ConditionerMode Mode;   public int MinTemperature = 18;   public int MaxTemperature = 20;
   public AirConditioner(){    }
   public AirConditioner(ConditionerMode mode){       Mode = mode;   }     public AirConditioner(ConditionerMode mode, int MinTemp, int MaxTemp){      Mode = mode;      MinTemperature = MinTemp;      MaxTemperature = MaxTemp;   }}</span>
5 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
Ugo [173]

Answer:

Business format franchise or Business Brokers

Explanation:

8 0
3 years ago
How many bytes will have been written to the standard output device after these instructions have been executed
Anvisha [2.4K]

Answer:

Hello your question is incomplete below is the complete question

The following questions refer to this data segment (in x86 assembler language):

.data

var1 db 10h,20h

var2 dw 1020h

var3 db '4'

var4 db '56'

var5 db '789','$'

How many bytes will have been written to the standard output device after all these instructions have been executed?

mov dx, offset var3

mov ah, 9

int 21h

Answer : 4 bytes

Explanation:

(in x86 assembler language) The number of bytes that will have been written to the standard output device after the instructions listed have been executed is : 4 bytes

8 0
3 years ago
Other questions:
  • What is the circular motion that the earth makes in its orbit around the sun
    14·1 answer
  • Explain working principle of computer?​
    13·1 answer
  • A computer hacker usually gets into a companyâs network by _____.
    15·1 answer
  • What's the best way to change the font size of all your notes pages at once?
    14·2 answers
  • Distinguish between multiprogramming and multiprocessing. What were the key motivations for the development of each?
    14·1 answer
  • what is the goal of technology A. to understand how the natural world functions B. to study the natural world C. to improve the
    9·1 answer
  • Which of the following can a cell contain?
    7·2 answers
  • Write a script that will read from a file x and y data points in thefollowing format:
    9·1 answer
  • What type of security software prevents, detects, and removes malware that tries to collect personal information or change compu
    13·1 answer
  • Film’s importance in today’s economy?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!