edhesive 6.8 lesson practice answers please ​

Answers

Answer 1

Answer: any more info yo can give me. i want to help i dont undestand

Explanation:

Answer 2

Answer:

import simplegui

import random

# global constants

WIDTH = 600

HEIGHT = 400

PARTICLE_RADIUS = 5

COLOR_LIST = ["Red", "Green", "Blue", "White"]

DIRECTION_LIST = [[1,0], [0, 1], [-1, 0], [0, -1]]

# definition of Particle class

class Particle:

  # initializer for particles

  def __init__(self, position, color):

      self.position = position

      self.color = color

  # method that updates position of a particle    

  def move(self, offset):

      self.position[0] += offset[0]

      self.position[1] += offset[1]

  # draw method for particles

  def draw(self, canvas):

      canvas.draw_circle(self.position, PARTICLE_RADIUS, 1, self.color, self.color)

  # string method for particles

  def __str__(self):

      return "Particle with position = " + str(self.position) + " and color = " + self.color

# draw handler

def draw(canvas):

  for p in particle_list:

      p.move(random.choice(DIRECTION_LIST))

  for p in particle_list:

      p.draw(canvas)

# create frame and register draw handler

frame = simplegui.create_frame("Particle simulator", WIDTH, HEIGHT)

frame.set_draw_handler(draw)

# create a list of particles

particle_list = []

for i in range(100):

  p = Particle([WIDTH / 2, HEIGHT / 2], random.choice(COLOR_LIST))

  particle_list.append(p)

# start frame

frame.start()

Explanation:


Related Questions

Review the following definition of sustainable construction projects:
Sustainable construction projects demonstrate common sense applications of natural resources throughout the life of the project.
Sustainable projects also take into account the long-term effects on the environment, including how energy and materials are used and
recycled, which should be incorporated into the building itself.
Based on this definition, which of the following characteristics is not a characteristic of sustainable construction projects?

Energy and material efficiency in construction, operation, and maintenance.

Established technologies that have been in use for several decades

Low environmental impacts over the project's life cycle.

High ratio of renewable energy to fossil energy in construction, operation and maintenance,

Answers

Answer:

Established technologies that have been in use for several decades

Explanation:

Answer:I’m not sure

Explanation:

Which of the following is a palette of colors, fonts and special effects which complement one another?
O Placeholders
O Theme
O Background
Slide Masters

Answers

Answer:

Theme

Explanation:

Do you need a internet browser to go to the intrnet?​

Answers

Answer:

No you do not need a interent browzer to get to the internet.

Explanation:

Not sure but I don’t think so

So my teacher asked us to predict who would win in a death match, and we could choose the two characters, so Alastor from Hazbin Hotel vs Blackhat from villinous, who would win?

Answers

Answer:

I think alastor from Hazbin Hotel.

Answer:

alastor

Explanation:

i mean alastor is a demon and blackhat we dont know if he is a demon or not but i mean alastor would win he took down a flying ship that was trying to kill them

Give two examples of search​

Answers

Answer:

goo.gle and ya.hoo

Explanation:

Web browser, book looking up

What might the Internet of Things do in the future?

Answers

The future of IoT has the potential to be limitless. Advances to the industrial internet will be accelerated through increased network agility, integrated artificial intelligence (AI) and the capacity to deploy, automate, orchestrate and secure diverse use cases at hyperscale.

what is the binary for O?​

Answers

Answer:

01001111

Explanation:

Answer:

0000 0000

Explanation:

Match the example with the type of collection.

{'casa': 'house'}


[3, 5]


(3, 5, 'dog')

Answers

Answer: First is a dictionary, second is a list, and third is a tuple

Explanation:

This is your data.
A= [5, 10, 15]
B = [2, 4, 6]
C = ['dog','cat', 'bird']
You can implement an array of this data with

Answers

Answer:

This is your data.

A =  [5, 10, 15]

B =  [2, 4, 6]

C =  ['dog','cat', 'bird']

You can implement an array of this data with  

either by using lists or by using the array module

ALSO

This is your code.

>>> A = [ 'dog', 'red']

>>> B = [ 'cat', 'blue']

>>> C = [ 'fish', 'green']

You can implement an array of this data by using  

by using lists but not by using the array module

Explanation:

Edge2020

A= [5, 10, 15],  B = [2, 4, 6], C = ['dog','cat', 'bird']. You can implement an array of this data either by using lists or by using the array module.

What is an Array?

An array is a type of data structure used in computer science that holds a set of elements that are all uniquely recognized by at least one array index or key. Each element of an array is recorded such that a mathematical formula may be used to determine its location from its index tuple.

Indexed arrays, multidimensional arrays, and associative arrays are the three types of arrays.

A procedure called indexing selects a subset of values from an array. A value's position inside an array is indicated by its index. The location of the value in an array differs from the value itself.

To read more about Array, refer to - https://brainly.com/question/14375939

#SPJ2

Other Questions
PLzz help I don'y not get it Help. I need help with these questions ( see image).Please show workings. HELP!!!!The half note is the home-base that we measure all the other notes against.TrueFalse please help will give brainliest What is 2 times 2? It would be really helpful. 9/10 answer 2 questions correctly for brainiest 6x^3 -x^2-10x-3 by 2x-3 I really need help on this one, I don't understand. Please help if you can Saul makes green paint by mixing blue paint and yellow paint.For every 4 gallons of green paint, he uses 3 gallons of blue paint.Drag the correct number of each type of paint into the box that would make 16 gallons of paint the same shade of green as Saul's. JEJEISHEVEHSUEHRH PLEASE PLEASE HELP me!!! can give brainliest!Joyce would like to invest her money in a savings account. The function A (t) = 900(1.03)^t represents the amount of money joyce will have in her savings account after t years. How long will it take Joyce to have $1200 in her account? Around your answer to the nearest tenth of a year. ( use desmos ) how sexual reproduction plays its role in avoiding genetic monotomy Mi casa blank lejos de la escuela. Help pls ill mark brainliest What state of matter can easily be compressed (squeezed into a much smaller space)? *gasessolidssolids, liquids, and gasesliquids Which is an irrational number There is a spinner with 15 equal areas, numbered 1 through 15. If the spinner is spunone time, what is the probability that the result is a multiple of 3 and a multiple of 5 plz helpWhich event causes the formation of trenches in Earth's crust?a. magma rising b.mantle emergingc.volcanoes eruptingd.lithosphere colliding PLEASE HELP The members of the Bolognese art academy strove to: Help please. I will mark you as brainliest!!!Which of the following would make the best thesis statement?A. Dogs like to wag their tails.B. Dogs wag their tails when they are happy.C. Tail-wagging in dogs is actually a sophisticated method ofcommunicating emotional responses.O D. In this essay, I'm going to tell you what it means when dogs wagtheir tails. please help me . weak in here