4.8 Code Practice: Question 1

Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.

Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

Answers

Answer 1

Answer:

c = 1 # global variable

    jhjl jh

def add(): c = 1 # global variable

def add():

   print(c)

add()

   c = c + 2 # increment c by 2

   print(c)

add()

Explanation:

Answer 2

Answer:

for x in range(1, 16):

   print(x * 5, end=" ")

Explanation:

Hope this helps!


Related Questions

____ a British mathematician devolved the concept of a programmable digital computer and worked with Ada Lovelace to design the first mechanical computer the Analytical Engine

A William Shockley

B Grace Hopper

C Charles Babbage

D Bill Gates

someone pls answer asap ​

Answers

Answer:

C: Charles Babbage

Explanation:

Charles Babbage

Charles Babbage (1791-1871), computer pioneer, designed two classes of engine, Difference Engines, and Analytical Engines.

The analytical engine is a comprehensive robotic computer system that's been fully programmed as well as automatically controlled, and the further discussion can be defined as follows:

The computer pioneer Charles Babbage (1791-1871), designed two engine classes, different engines as well as analytical engines.He was indeed the brain behind ideas and therefore is considered one of the best on two different computers.A British mathematician Charles Babbage has invented the notion of the digital programmable computer and has been working with Ada Lovelace to design an analysis engine's first machine.

Therefore, the final answer is "Option C".

Learn more:

brainly.com/question/23422991

you are working on creating a business document with two other co-workers. Based on just information, which of the following pre-writing strategies would be the best for you?(A.P.E.X.)

Answers

Brainstorming, Rationalizing, and Rough Drafts.

Collisions occur when one output is mapped to two inputs.

A. True
B. False

Answers

Answer:

true very true very true

Answer:

False

Explanation:

I honestly just guess ngl

but i believe it's right ;0

Which command is located in the Action Settings dialog box that allows a user to set a linked or embedded object as a trigger to perform an action?

Object action
Hyperlink to
Run action
Highlight click

Answers

Answer:

Object action was the answer.

Explanation:

Answer:

Object action is the answer

Explanation:

I got it right on the unit review

What can you do to prevent damage to a computer? Check all of the boxes that apply.

Keep your computer in a temperature- controlled room.

Tie cords in knots so they are shorter.

Dust your computer only when you see a buildup of dust.

Use surge protectors when you are away from home or school.​

Answers

Answer:

temperature-controlled room and surge protectors

Explanation:

Answer:

Keep your computer in a temperature- controlled room

Dust your computer only when you see a buildup of dust

Use surge protectors when you are away from home or school

Explanation:

just good

Help me pls!!


Look at the following assignment statements:

food1 = "water"
food2 = "melon"

What is the correct way to concatenate the strings?

newFood = word1 == word2
newFood = word1 + word2
newFood = word1 * word2
newFood = word1 - word2

Answers

new food = word1 + word2 will connect both words together with no space in between. The value of newFood will now be "watermelon"

Answer:

new food = word1 + word2

Explanation:

Which line is most likely an error? A-“hello” B-hello C-“100” D-100

Answers

Answer: I think it is c

Explanation:

The error is most likely C. Hello quoted is proper. ("Hello") Eliminate A. Hello is proper as well so eliminate B. Now, we are at C. I Believe this is the answer since it is 100 quoted ("100"). 100 quoted does not make since unless used in a sentence such as "I bought 100 apples today for a good price!" D cannot be the answer since it is 100 all by itself. Thus, your answer should most likely be C, "100".

What are possible challenges of cyberbullying

Answers

Answer:

so,e challenges of cyber bullying is that,it could be a random person bullying u and u won't know who it is,another challenge of cyber bullying is that they can blackmail u or pretend to be u or threaten u

Answer:

Possible challenges of cyberbullying have to do with nonbelievers, or people who do not think cyberbullying is a real problem. Technology makes it hard to stop bullies, and some people do not want to take responsibility.

Which of the following is an example of gameplay in a video game
A: the art of a game

B: the player interacting with the game world and game mechanics

C: the personalities of all the characters

D:all of the above

Answers

Answer:

the correct answer is B. the player interacting with the game world and game mechanics

The ideal hash function:

A. Should be unfeasible to find two inputs that map to the same output
B. Should be unfeasible to learn anything about the input from the output
C. Basically we don’t want people to figure out what was said
D. All the above

Answers

I believe the answer is A
Hope this helps

What action demonstrates unethical behavior?
A.
working overtime
B.
completing your work ahead of time
C.
taking credit for another person’s work
D.
keeping a tab on your organization’s carbon footprint
E.
leaving office on time

Answers

Answer:

taking credit for another person’s work

Any illegal actions, such stealing or physically abusing employees, are unethical at work. Unethical behavior can be observed in a wide range of businesses and environments. Taking credit for another person’s work.

What is Unethical behavior?

When a person, a professional, or an industry acts in a way that is deemed unethical because it goes against social norms, that behavior is referred to as unethical behavior.

Politicians, businesses, professions, and individuals all have the potential to act unethically.

There are other instances of deliberate deception, but they serve as illustrations of how damaging deception can be when it is used to violate someone's rights or security.

Therefore, Any illegal actions, such stealing or physically abusing employees, are unethical at work. Unethical behavior can be observed in a wide range of businesses and environments. Taking credit for another person’s work.

To learn more about Unethical, refer to the link:

https://brainly.com/question/10174825

#SPJ2

Anyone have an answer for 4.9 lesson code practice

Answers

Answer:

loop

Explanation:

Answer:count

Explanation:

Hi guys, Im making a game. I want to make a collision event, but what is the code for making the wall and the box collide. I really need a quick and correct response. Pls support.

Answers

Answer:

i think its 3337

Explanation:

Choose all items that represent essential features of excellent navigation menu design.

uses clearly and simply labeled links

is consistently styled and located

contains a link to a site map

is intuitive and easy to use is available on all pages

in the site employs a drop-down list​

Answers

Answer:

A,B,D,E

Explanation:

Answer:

A- uses clearly and simply labeled links

B- is consistently styled and located

D- is intuitive and easy to use

E- is available on all pages in the site

Match the interface element with the corresponding examples. You will use the elements more than once.

Question 1 options:

List Boxes


Message Boxes


Accordion


Modal Windows


Search Field


Notifications


Buttons


Checkboxes


Tooltips

1.
Input Controls

2.
Navigational Components

3.
Informational Components

4.
Containers

(place each one of them under the 1.2.3.4 categories)

Answers

Answer:I’m nit sure sorry

Explanation:

..

Which of this isn't one of the three types of cryptograph?

A. Vegenere
B. Symmetric
C. Asymmetric
D. Hashing

Answers

Answer:

A. Vegenere

Explanation:

I think it's spelled Vigenère, I might be wrong.

The three types of cryptograph are:

Symmetric Key Cryptography (Private/Secret Key Cryptography)

Asymmetric Key Cryptography (Public Key Cryptography)

Hash Function

agree and tell why becoming a priest/nun is an honorable job PLEASE ASAP​

Answers

As a priest or nun you are helping the community of people who you relate to. They do a lot of charity work also so you are making the world a better place. And if your religious you are in a career that helps you grow in your faith.

BRAINLIEST

When using design templates, these elements will be determined for you.
bullets
background
color scheme
content
title
font

Answers

Answer:

background

color scheme

font

I think thats all

Explanation:

Please give me Brainly

When using design templates, the elements that will be determined for you are color scheme and background. The correct options are b and c.

What is designing a template?

The template is creating a document that has a copy of itself. Design templates are ready-made layouts and written materials that can be altered.  For example, if you have a template of office content, then you can use it for another word document. You don't have to start from scratch.

In order to maintain consistency among users and media, templates are frequently created to adhere to certain rules or specifications. You can make new templates for later use, or utilize pre-designed templates from template libraries and websites.

Therefore, the correct options are b, background, and c, color scheme.

To learn more about template, refer to the link:

https://brainly.com/question/28193778

#SPJ2

What is the difference between soft copy output devices and hard copy output devices​

Answers

the output printed on the paper is called hardcopy output. some examples are printer and plotter.

the output produced on display screen and audio sound is called soft copy output. some examples are moniter and speaker.

people can use social media responsibly by what​

Answers

Answer:

spread love not hate n password diligent

By limiting their time on social media

Explanation:

What are the steps to customize a slide show?

Go to Slide Show tab, select Hide Slide, select the slides to hide, and save.
Go to Slide Show tab, select Set Up Slide Show, select show type Custom, and save.
Go to Slide Show tab, select Custom Slide Show, select slides to be shown, and save.
Go to Slide Show tab, select Custom Slide Show, select Record Slide Show, and save.

Answers

Answer: Third one

Explanation: I got it right

Answer:

Third one

Explanation:

Which statement is true? Select 3 options.

A function must have a return value.
A function can use variables as parameters.
The definition of a function must come before where the function is used.
A function can have more than one parameter.
The definition of a function can come before or after it is used.

Answers

Answer:

A,C, AND E

Explanation:

i got it wrong for the anwser

The statements that are true are as follows:

A function must have a return value.The definition of a function must come before where the function is used.The definition of a function can come before or after it is used.

Thus, the correct options for this question are A, C, and E.

What is Function?

A Function may be defined as a kind of expression, rule, or law that significantly determines a relationship between one variable which is known independent variable and another variable which is known as the dependent variable.

Each and every function must possess a return value. Apart from variables, there are several other parameters on which functions have to be worked on. So, the definition of a function must exist prior to its utilization. However, the actual definition of function may also exist after its utilization as well.

Therefore, the correct options for this question are A, C, and E.

To learn more about Functions, refer to the link:

https://brainly.com/question/22340031

#SPJ2

not sure what this means.​

Answers

Answer:

should be text effects............

Text effective it’s not hard it’s easy

4.8 Code Practice: Question 1
Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.

Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

Answers

I included my code in the picture below. Best of luck.

Loops are used to perform repetitive operations.

The for loop in Python is as follows:

for i in range(5,76,5):

   print(i,end =" ")

The syntax used for the range in for loop is: (start,end+1,increment)

The start represents the first value to be printed.

So: start = 5

The end represents the last value to be printed.

So: end = 75

Because the end value will not be inclusive, the value is incremented  by 1

The increment is 5

Read more about similar programs at:

https://brainly.com/question/21298406

look at the picture lol

Answers

Answer:

Zoom in more please and than i can help

Explanation:

Answer:

I would go with the first blue highlighted one... but i could be wrong

i hope i helped

if i didn't... i am sorry, i tried.

Which of the following You tubers uses the word "flip" as a curse word

A. Unspeakable
B.09Sharkboy
C. Moosecraft
D. All of the above

First correct answer get brainiest!

Answers

All of the above cause it’s fliped

1. You are designing a program that will keep track of the boxes in a doctor’s office. Each box will have three attributes: date, contents, and location. Write a class that will consist of box objects.

Answers

Answer:

Public class Box

{

private String myDate;

private String myContents;

private String myLocation;

public class Box(String date, String contents, String location)

{

myDate = date;

myContents = contents;

myLocation = location;

}

}

Hope this is what you're looking for! If not, let me know and I can try to help more. :)

Each box will have three attributes: date, contents, and location. It is class box.

What is class box?

There is a method in the box class of this program. Box is a brand-new data type for the class.

Box is used to declare objects of this type as having double height; Class declaration just generates a template; it does not generate any actual objects. None of the objects of type are affected by this code. Box void volume

Therefore, Each box will have three attributes: date, contents, and location. It is class box.

To learn more about class box, refer to the link:

https://brainly.com/question/14427083

#SPJ2

How does Python recognize a tuple?

Answers

Answer:

Tuples can be recognized like this,

tuple = 'hello', 'world'

or tuples can be recognized like this

tuple = ('hello', 'world')

you can see the value of a tuple by simply printing it out like so,

print(tuple)

Answer:

Tuples can be recognized like this,

tuple = 'hello', 'world'

or tuples can be recognized like this

tuple = ('hello', 'world')

you can see the value of a tuple by simply printing it out like so,

print(tuple)

Explanation:

what are some tips to stay focused in school, and to complete work faster? ​

Answers

Answer:

Sometimes listening to music or chewing gum.

Explanation:

When I need to focus, I like listening to music and sucking on a hard candy or chewing gum.

Pls give Brainliest!!

Answer:

What I do to focus in school is to try and ignore everything that is going on around you. ( what your classmates are doing ) Drown out the noise with music if your allowed to listen to music. Ask the teacher is you can go somewhere quieter

Explanation:

Hope this helps, Have a Wonderful Day!!

Select the protocol data units.
1. Bit
2. Segment
3. Frame
4. Data
5. Spoof
6. Pin
7. Packet​

Answers

Answer: 4. Data 2. segment  7.packet 3.frame  1.bit

Explanation:

Answer:

segmet bit packet frame data

Explanation:

Other Questions
Ahhh! Such a beautiful day, uh (Yeah)The sun's shining in a beautiful way, uh (Whoo)Gonna take a shower, brush my teeth andLife is ultimately meaninglessUhh... Uhh...But I'll get out of the houseGet on the road, top down, hands outPut on my favorite song and nod to the rhythmThe planet's being destroyed by your carbon emissionsBut I- I-, I'll head to classTry my best on every test 'til I passAnd my grades are screaming in my face, hey98 percent of what you learn is a wasteI get to hang out with all my friends (Yeah)My friends are the friendliest friendsCan't think of a better way to spend my timeYour brain is flawed, and all your friends will dieNever mind!I'm alive in the greatest nation!So proud of the exploitation of nativesThis graceful bird means freedom for allTell that to the slaves, and bald eagles aren't baldI can live in the moment, milk every secondAt any time you could get clinical depressionBut I'll just be happy, no matter what's in storeIt's quite genetic, and we have no cureUh, at leastWe are youngNot for longLife is funIt only goes downhillWe gotta make the most of it! Make the most of it!Or you'll regret itWe are youngFor nowLife is funFor some peopleWe gotta make the most of it! Make the most of it!Good luckWoo! I got a brand new job today! (Yeah)Doin stuff that'll help the economy (Uh)I'll save money and buy things at the storeBanks can crash and capitalism is flawedAnd it's all because of my hard workAnd the thousand advantages you lucked into at birthI put a lotta effort in my resume!Good thing you don't have a black person's nameI'm proud to be a functioning member of societyFinally, I can be the citizen I dream to bePart of the community, contribute with my taxWhat could possibly stop me?The shrinking middle classI've at least got a nice stable jobUntil it's outsourced to China or replaced by a robotOH GOD! Well, then I could relax a bitYou'll be empty with nothing to distract from itBut man, I'm a passionate graduateI can be different, and I have a career paths to pick fromI could be a rapper or an animator if I'm luckyNeither of those will make you happy, trust meI'm able to choose what I pursue (Yeah)You're a slave to people born richer than youThen screw it, I'll keep going inThen I'll party on the weekend and sing, no, oh, oh ohThanks to autotuneWe are youngNot for longLife is funIt only goes downhillWe gotta make the most of it! Make the most of it!Or you'll regret itWe are youngWe still dieLife is funUntil you dieWe gotta make the most of it! Make the most of itBecause you'll dieLife is a wonderYou'll never know the answerNature is a miracleNatural disastersIt's good to be aliveYou could wake up with cancerBut I'm healthyHealthy people still get cancerI love this showIt's the last episodeThe sun is shiningIt's going to explodeEvery species is beautiful and unique, thoughChildren have malaria thanks to mosquitoesI met a cute girl with a ponytailStatistically that relationship is going to failI have a wonderful family, it's like no otherYou're not special, and one day you'll bury your motherNo matter what, I can find a home!We, Will All, Die, AloneThere's amazing potential in every human on earthThere's no escaping the heat death of the universeI don't have to live life based on negative partsNo matter how bad they are, they're just thoughtsYeah, that's fairWait, really?Yeah that seems reasonableWait, wait, wait, wait but you were just telling me to-Whatever man, I dunno, live your life how you wantI'm not forcing you to do anything, I'm just sayingOh...Well in that case...We are young!Life is fun!We gotta make the most of it! Make the most of it!We are young!Life is fun!We gotta make the most of it! Make the most of it!Enjoy it while it lasts Why would Tift choose to invest in pine forests?The workers were more skilled at working in sawmills.The cotton would no longer grow.Pine trees were natural to the area and were abundant.Other crops cost more money to plant. I NEED HELP.... IM TIMED!!! PLS SHOW WORK!!! +10 POINTS A function f is defined by f(x,y) = x - (xy - y). What is the value of f(8,6)?A. -46B. -34C. 46D. 50E. 62 draw a mapping that represents a relation with domain -1, 0, 2 and range 1,4 is only one answer possible? explain What is the opposite force to pushing off the ground to jump? Is this correct? Please answerI will mark brainliest! Which reason justifies statement 2?A) Vertical angles are congruent B) Corresponding angles are congruent C) Alternate interior angles are congruent D) Alternate exterior angles are congruent A bag of oranges are on sale at the grocery store downtown and at the farmers market. At the grocerystore a 4 lb. bag of oranges cost $5.00, and at the farmers market the price for a 10 lb. bag of orangesis $12.00. What is the rate that the grocery store is selling for? What is the rate for the farmersmarket? Life question. How do you get guys to like me? The city of San Francisco sprang up almost overnight, as thousands of people flocked to the region to search for golIn 1949, the population increased from just 1,000 to more than 25,000. As a result, there were never enough rooms inthe local hotels to house the prospectors, and restaurants regularly ran out of food.Based on the information contained in the passage, which Oklahoma city's history is most similar to San Francisco?A. Guthrie. LawtonC. TulsaD Norman Explain how to find the original and the new dimensions of an object when the scale changes. plz hurry I GIVE BRAINLIEST!!A thermos is used to keep liquids, such as soup or water, near a constant temperature for long periods of time. Which statement describes the function of a thermos?A. to maximize thermal energy outputB. to minimize thermal energy transferC. to maximize thermal energy transferD. to minimize the use of environmentallydamaging materials This passage is important to the story because it shows that Buckhas left behind his old friends and ways of life.has become part of a new family of dogs.has started to feel strong and healthy again.has given up his need to be a leader.n your ideas and decide on a single focus. What is the simplified form of the expression? Write an expression for the sequence of operations described below.raise 10 to the 9th power, then add d to the resultDo not simplify any part of the expression. What is an equation of the line that passes through the points (-1, 1) and(-2,-4)? Triangle LMN isosceles, look at this photograph these are: Helpp brainliest of rightt!!