Edhesive 6.2

Examine the code below. When this program runs, how many times will the word "Hello" be printed?

import simplegui

def draw(canvas):
for i in range (10):
canvas.draw_text("Hello", (10, 25 + 20*I), 20, "red")

frame = simplegui.create_frame("Testing", 400, 400)
frame.set_draw_handler(draw)
frame.start()

Answers

Answer 1

Answer:

10

Explanation:

"for i in range (10):"

Answer 2

Answer:

10

Explanation:

im good


Related Questions

ASAP!
Use the drop-down menus to complete the statements about Contacts and the Contacts View.

A ( Task, calendar, or contact ) is an object stored in Outlook that contains information about individual people you want to communicate with.

Use the ( Mail, people, or calendar ) icon in the Navigation pane to see the Contacts View page.

Answers

Answer:

Contact

People

Explanation:

You manage a Windows computer that is being used by multiple people. One of the users installs a new Internet Explorer add-on that interferes with the browsing functionality of other users on the system, but the add-on is necessary for business purposes. What should you do?

Answers

Answer:

Explanation:One of the users installs a new Internet Explorer add-on that interferes with the browsing functionaility of other users on the system, but the add-on is necessary for business purposes. What should you do? Instruct the other users to log on and disable the add-oon.

The space where text and content is entered and positioned for onscreen reading or printing

A. Page

B. Page margins

C. Insertion point

Answers

Answer:

Page.

Explanation:

A page typically occupies the largest portion of a document layout as it houses the main writeup or content of the document. The text contained in a document is written on a the main page of the document. The main page is surrounded by the page margin, which is an area which separates the tips or edges of an entire papwr and the writing area (page) of the document. The insertion point refers to an indicator which shows the position which a typed character will fall or be placed. Content written on a document's page is what is printed when the document is to be printed out and test entered on the page are what is seen by the reader.

10. A loop statement is given as:
for(i=10;i<10;i++)
{
Statement
}
For how many times will the given loop statement be executed:
(a) none
(b) 1 time
(c) 10 times (d) infinite​

Answers

Answer: a. None

Explanation:

The loop will not run as the condition always returns false.

i=10 and the condition given: i<10 which is false always. So, the loop will not run.

Write a program that fills a list with 100 random numbers between 0 and 200, inclusive. Traverse through the list and only print out the numbers that are less than 99. You can develop this code in App Lab if you like and copy your final program to the answer area below. Keep the code neat and use curly braces where necessary. This question is worth 4 points. *

Answers

Answer:

Follows are the code to this question:

import random as ra#import package  

r=[ra.randint(0, 200) for x in range(100)]#defining a variable r that use rand method to add value in list  

j= [i for i in r if i < 99]#defining j variable that checks list value is less than 99

print (j)#print list value

Output:

[20, 23, 66, 47, 89, 7, 18, 13, 92, 31, 23, 60, 3, 52, 18, 20, 85, 64, 55, 98, 14, 80, 80, 14, 57, 92, 76, 14, 91, 83, 87, 80, 16, 50, 7, 88, 19, 4, 72, 23, 27, 79, 23]

Explanation:

In this code, package random is imported, in the next step, the r variable is declared, that uses the randit method, and use for loop that adds value in the list. In the next step, the j variable is declared, which uses a for loop and a conditional statement to check its value is less than 99, add print its value.

which fields in the contact form is used to control the order in which contacts are displayed in the current view?

Answers

Answer:

The answer is "File As"

Explanation:

The file is a data collection, that is processed either by filename in a single system. It could be a text, an image, a sound or a streaming server, a software collection, an and app, and other data collection. In this, the File As the field is used to order in connections that are displayed in the original understanding was controlled by using the contact-form sector.

Write a function that takes two arguments and returns their sum.
In the main part of your program (the part that isn't inside a function), call your
function to test it out.

Answers

Answer & Explanation #1

To answer your first query. You can write a function that takes two arguments and returns their sum like this:

#Python program to add two numbers using a function

def add_num(a,b): #function for addition

   sum=a+b

   return sum #return value

num1=25  #variable declaration

num2=55

print("The sum is",add_num(num1,num2)) #call the function

Answer & Explanation #2

As for your error, I believe it is an indent error in your first return statement. All you must do is indent the return statement.

What does the aperture on a camera control?

Answers

Answer:

Aperture controls the brightness of the image that passes through the lens and falls on the image sensor.

Explanation:

HELP !!! Prompt
What is formatting text?

Answers

Answer:

Formatting text is how something is specifically layed out. Specific style.

Explanation:

Answer: what u mean by that?

Computer design software requires _____ to be used properly and successfully by architects.
a. an understanding of details and construction
b. an eye for design and a knowledge of architecture
d. architectural talent and an eye for design

Answers

a I hope it helps you out

Answer:

architectural talent and an eye for design

Explanation:

hope it helps

What is an example of a recent development in technology

Answers

Artificial Intelligence (AI) and Machine Learning. ...

Robotic Process Automation (RPA) ...

Edge Computing. ...

Quantum Computing. ...

Virtual Reality and Augmented Reality. ...

Blockchain. ...

Internet of Things (IoT) ...

5G.

Answer:

every day new things are made and different.

Harvey is not happy with the software that allows the programmer to write and run code and wants to find something new. If Harvey is looking online for a replacement, which of these would be the best search terms to use?

A. database editor

B. binary translator

C. alphanumeric variable

D. integrated development environment

Answers

Answer:

D. integrated development environment

Explanation:

Given that an integrated development environment is a form of computer software App that allows the users or programmers to develop a software App in a way the enables them to carry out different operations including source code development, build and test automation, and debugging activities.

For example NetBeans, Eclipse, IntelliJ, and Visual Studio.

Hence, in this case, the correct answer is "integrated development environment."

Answer:

It's d

Explanation:

write a deffrentiate between inkjet peinter and laser printer​

Answers

A inkjet printer uses ink, while a laser printer doesn’t need ink and it’s named laser because it’s like a laser that prints the objects.

Also a laser printer can print 3D objects while the ink printer can only print on paper.

how many comparisons will be made to find 12 in this list using a linear search?
1, 8, 15, 12, 16, 3, 8, 10

Answers

Answer:

4

Explanation:

Because I'm smort (typo intended)

The correct answer should be 4

A box has a mass of 5 kg. What is the weight of the box on Earth?
Show your work

Answers

Answer:

5 kg

Explanation:

5 kg

Which of the following are ways that
employees can check their behaviors at work
after reviewing the written policies? (choose
all that apply)
observing coworkers
checking in with a supervisor frequently
discussing their employment contract with
legal department

Answers

Answer:

A and b

Explanation:

Answer: A AND B

Explanation:

What is the output of the following program?
for num in range(3):
print (num * 3)
OUTPUT:

Answers

Answer:

0

3

6

Explanation:

Ryan is the operations manager for a national financial company. His company is in the process of creating a customer handbook. Employees all over the country will collaborate on the different documents that will be included in the handbook and frequent additions and revisions will be made. He is looking for a telecommunications technology that can help him efficiently manage this task.

In 2-5 paragraphs, describe the points that Ryan needs to consider when choosing a telecommunications technology to meet his needs.

Answers

Answer:

Ryan first needs to determine his goals, in his case he is looking for a telecommunications technology that will often need to be updated and revised by others. Once he determines what he is looking for he can start gathering data, and once he's done that he can analyze his choices from the data he's gathered, in his case I would assume he'd be looking at either a wiki or a blog. Now it's time for Ryan to make his decision, I would go with a wiki since a wiki can be updated by many people in diverse locations. He said so himself that employees all over the country would be contributing to it so that is why I think a wiki would best suit him. Now that he's made his decision and can take a step back and evaluate what he has done and make sure he made the right choice.

Explanation:

:)

Which line of code could be used for a constructor?
def init (firstName, lastName, idNum)
def _init_(self, firstName, lastName, idNum)
def _init_(firstName, lastName, idNum)
def init(self, firstName, lastName, idNum)

Answers

Explanation:

I think (first name last name id Num)

Answer:

Its c.  def __init__( firstName,lastName,idNum):

Explanation:

Help me asap please

Answers

Number 3 is the answer good luck

Which of these helps improve readability?

using all uppercase text

putting two spaces after a period

using left-aligned text

using an image instead of text

Answers

Answer:

using left-aligned text

Explanation:

Using left-aligned text helps improve readability. The correct option is 3.

What is readability?

The ease with which written text can be read and understood by its intended audience is referred to as readability. It is a measure of how clear and simple the language used is.

Because it creates a clean and consistent left margin that helps guide the reader's eye from line to line, using left-aligned text can help improve readability.

Using all uppercase text can make text more difficult to read because it is more difficult to distinguish between letters and words. It can also give the appearance of shouting or aggression.

Putting two spaces after a period was once taught in some typing classes, but it is now discouraged because it can disrupt the visual flow of text and create uneven spacing between words.

Thus, the correct option is 3.

For more details regarding readability, visit:

https://brainly.com/question/19540657

#SPJ3

5. Write
the
steps.
open
MS-
powerpoin
to

Answers

Answer:

Explanation:

1. Go to start ·

2. Then click on 'All programs' ·

3. Then go to Microsoft office ·

4. Click on 'Power point .

Hope it helped you. Plz mark me brainliest.

If Anyone can help me out that'll be great

Answers

Answer:Sorry but it shows 2 things only which doesn't tell us what u need help with.

Explanation:

What are examples of primary keys that most likely would be used for customers in a department store database? Check all that apply.


genders

blank values

years of birth

customer IDs

phone numbers

social security numbers

Answers

Answer:

customer IDs

phone numbers

social security numbers

Explanation:

A primary key may be defined as the special choice of the attributes which uniquely specify tuple in the relation. It is the set of columns where values uniquely identify each of the rows in the table.

It is use to find the unique record form the table or database. It is the key in the relational database which is unique for each record. It can be a unique number such as identification number, vehicle number, etc.

In the context, the primary keys which is used for the customers in a departmental store database are :

-- customer IDs

-- phone numbers

-- social security number

All these are unique set of number and they are the primary keys for a customer as they are uniquely identifies a particular customer. No other person is given the same phone number or phone number.

is megan the stallion hot

Answers

Answer:

Explanation:

Cool

Answer:

oh im not sure lol

Explanation:

PLEASE HELP. How do you do this? ANSWER only if you know Please.

Answers

I think it might be 16. But I don’t really now so I say wait for another person’s answer this one might not be correct

Answer:

16

Explanation:

answer = num1 + num2 // 3+2 = 5

answer = answer + num1 // 5+3 = 8

return answer*num2 // 8*2 = 16

Which situation is the best choice for using telehealth?

Your leg is broken.

You have a rash on your cheek that is itchy and want some relief.

My aunt is having a baby and is in labor.

Your friend is having chest pains.

Answers

You have a rash on your cheek that is itchy and want some relief.

The situation that is the best choice for using telehealth is you have a rash on your cheek that is itchy and want some relief.

What is the meaning of telehealth?

The word telehealth is known to be a kind of electronic information and telecommunications technologies that is made to aid long-distance clinical health care, patient and others.

Note that The situation that is the best choice for using telehealth is you have a rash on your cheek that is itchy and want some relief.

Learn more about rash from

https://brainly.com/question/13081953

#SPJ1

Convert the following code segments as instructed.
a. Write one if statement:
10 value > 0)
if value < 10)
print did it
b. Write multiple if statements:
if (len (mylstr) > 0) and (mylstr! "password")) :
print (did it)
c. Write multiple if statements (watch out, this may be trickier than it looks):
or (myue="password")) :
1 Kienyusa)
print (
MM)

Answers

Answer:

Following are the code to this question:

For point a:

value=7#defining a variable value that holds an integer value

if(value>0 and value<10):#use if block with and operator to check the value

print("did it")#print message

For point b:

my_str="not_password"#defining a variable my_str that holds string value

if (len(my_str) > 0):#defining if block that checks string variable length is greater than 0  

   if (my_str!= "password"):#defining if block to check my_str is not equal to another given value

       print("did it")#print message

For point c:

my_str="not_password"#defining a variable my_str that holds string value

if (len(my_str) > 0):#defining if block that checks string variable length is greater than 0

   print("did it")#print message

elif (my_str!="password"):#use elif block to check my_str is not equal to another given value

   print("did it")#print message

Output:

did it

did it

did it

Explanation:

Please find the complete and the correct question in the attached file.

In point a, the "value" variable is defined, that holds an integer value , and it uses if block with "and" operator to check the value is greater than 0 and less than 10, and at the last, it will print the message "did it".

In point b, the "my_str" variable is declared, that holds a string value , and use the multiple if block in this, it checks the length is greater than 0, and in another, if it checks its "my_str" value is not equal to another given value, and it prints the message "did it".

In point c, the "my_str" variable is declared, that holds a string value , and use the if block, it checks the length is greater than 0, it will print the message "did it".  In the elif block, it checks "my_str" value is not equal to another given value, and it prints the message "did it".

CAN SOMEONE PLEASE HELP ME OUT I REALLY NEED THE ANSWER!

Answers

Answer:

This will work for most languages, but this is mainly for c#. Double check what language your using before putting in this answer.

          Console.WriteLine("What grade are you in?");

           int grade = Convert.ToInt32(Console.ReadLine());

           if (grade == 9)

           {

               Console.WriteLine("Freshman");

           }

           if (grade == 10)

           {

               Console.WriteLine("Sophomore");

           }

           if (grade == 11)

           {

               Console.WriteLine("Junior");

           }

           if (grade == 12)

           {

               Console.WriteLine("Senior");

           }

           if (grade < 8)

           {

               Console.WriteLine("Not in High School");

           }

Explanation:

The first line asks what grade are you in, then when the user types in the grade it saves it in a variable. We then use that variable for the conditionals. The conditional states, whatever grade level your in, it prints your high school year title. If anything is lower than 8, it will print not in high school.

What is the “spot healing brush” tool used for?

Answers

Explanation:

it's essentially a texture replacement tool, meaning that it tries to create a seamless repair by replacing damaged or unwanted texture from one area in an image with good

Other Questions
If you are looking for a braniliest, if you get this right I will give one. The question is, what app always says ggor :) what fraction dose point A on the number line Belem reprasent Can anyone help me I want to copy the answer down so I know how to solve it HELPP! I need the answer quick . The value of a stock increases 14 2/3 points twice in one week. The other three days the value decreases by 10 points, 8 1/3 points, and 12 2/3 points. By how many points did the value of the stock change that week?A .2/3 pointsB .1/3 pointsC.-1 1/3pointsD. -1 2/3 points Suppose that a bike for $12 plus $ 1.60 per hour. What is the slope ? 23) Last week, the price of gasoline was $3per gallon. This week, the price fell to$2.85 per gallon. By what percent did theprice of gasoline drop week over week?Solve using an equation. Find the measure of the largest angle in the triangleshown.15x24x21x Employees in the defense industry have greater job security and higher pay when the country is engaged in major military conflicts, therefore it is good for the country to be involved in military conflicts is an example of: A craftsman is generally considered to be an artisan rather than an artist? Does anybody know the bypass password for blocked websites? 5/9 of the students in a group are male.5/6 of the female students in the group are right-handed.Find the smallest possible number of students in the group.(2 marks) What is the name for keeping a stable internal environment despite changes in the outside environment? What issue did Thomas Jefferson have with the purchase of Louisiana? Solving two-step inequalities is much like solving two-step equations. Useinverse operations to solve each of the following inequalities.5x + 8.5 > - 10.32x - 10 < 80 Ms. MacDonald raises rabbits. She starts with 5 rabbits. After a few months, she counts 5 times as many rabbits. The next time she counts, she has 5 times as many rabbits as she did at the previous count. How many rabbits does Ms. MacDonald now have? Select the correct exponential expression and its value A. 35 = 243 rabbits B. 53 - 15 rabbits C. 5 - 125 rabbits O D.35 - 15 rabbits. I need this rq plz help A person seeks psychotherapy because of difficulty establishing and maintaining emotionally satisfying relationships. The therapist's approach is grounded in humanistic psychology, and the therapist conceptualizes that the client's behavior is motivated by a need for ________. Use the method of cylindrical shells to find the volume V generated by rotating the region bounded by the given curves about x = 4. y = 3x4, y = 0, x = 2 Geometry Help: This is a repost , my last question the photo did not show the graph so here is a new photo , thankyou to anyone who helps! its really appreciated! Which is not required when working in a manufacturing facility?O a. closed toe shoesb. hard hatc. flip flopsd. eye protection