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
Inga [223]
3 years ago
9

(Python question)

Computers and Technology
2 answers:
Alborosie3 years ago
7 0

Yo sup??

A real life example for 'for loop' and a 'while loop' would be

imagine if I opened a new burger shop.

we plan to issue a 'Thank you' message to the first 2000 customers and a 'Never to see you again' for all.

So for doing the first part ie to issue a 'thank you' message I will use a for loop because I am aware of the number of iterations whereas for the latter part ie to issues the 'never to see you again' message I would use a while loop cause I am not aware about the customers that are gonna visit my shop.

Hope this helps

PS: in which language is brainly written??

Law Incorporation [45]3 years ago
3 0

Hey!

---------------------------------------------------

Definition:

A "for loop" is something used for repeating things over a list of items. For instance, a list or a dictionary.

Code:

colors = ["red", "green", "blue"]

for x in colors:

 print(x)

---------------------------------------------------

Definition:

A "while loop" is is something used for carrying out a set of lines that are true.

Code:

n = 1

while i < 4:

 print(n)

 n += 1

---------------------------------------------------

Real-Life Example:

A real-life example would if I was a manager or boss for a company say that everyone was off a certain day. Like, if I said everyone was off for Christmas the 25th. If I had 1000 employees that would take a very long time to send an email to everyone. Instead of sending an email to everyone I can program code that uses "for loops" and "while loops" to create a message and send it to everyone.

---------------------------------------------------

Hope This Helped! Good Luck!

You might be interested in
How does the Lossy file format reduce the file size?
beks73 [17]

The answer is c. I just took it on apex n that’s what I got lol

3 0
3 years ago
Read 2 more answers
What is element 115 and what is it from?<br> Also what did it do?
tekilochka [14]
Its temporary name, which is being used as a placeholder, is ununpentium. Element 115<span> is one of a number of super heavy </span>elements—elements<span> with an atomic number greater than 104—that are so short-lived, they can't be detected in nature. ... Creation of </span>element 115<span> during a particle collision of americium and calcium atoms</span>.
7 0
2 years ago
Help please
Ipatiy [6.2K]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question has two option, and this question is asked about how study group working effectively.

A group has agreed to meet twice a week to study for an  upcoming test. However, the study group has irregular  attendance because some members skip sessions without  notice.

This option does not fulfill the objective of the study group working effectively. Because, in this option some members are irregular and skip sessions without notice which does not the objective of study group working effectively.

During the study sessions, the attending group members  discuss each other's class notes, ask each other open- ended questions, drill each other on concepts, and come  up with possible test questions.  structuring their study sessions well  using good listenings is  having thoughtful discussions  sharing their notes freely with each other  showing a commitment to the group.

This option fulfills the objective of studying in a group. This option is correct and it matches with studying in a group effectively.

7 0
2 years ago
Read 2 more answers
Choose the correct vocabulary term from each drop-down menu
Korvikt [17]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Education that focuses on skills that can be used in the workplace is work-based learning.

Creating curriculum around learning goals established by the training or learning department is formal learning.

The continued pursuit of knowledge for either personal or professional reasons is lifelong learning.

Learning that focuses on goals established by the learner is informal learning.

7 0
3 years ago
The X.500 standard defines a protocol for a client application to access an X.500 directory known as which of the following opti
lions [1.4K]

Answer:

Option B is the correct answer for the above question.

Explanation:

DAP is a protocol technology that is used for the client and discovered by X.500 in 1988. Its use for the client host on the network. The operation of this protocol is --- Read, Bind, Search, List, Compare, Add and Modify the data.

The above question asked about the protocol which is searched by X.500 and used for the clients. So the answer is DAP which is stated by Option B hence this option is correct while other is not because--

  • Option 'A' states about DIB which is not a protocol. It is used by X.500.
  • Option C states about DIT which is not used by X.500.
  • Option D states about LDAP which can be used for client or server.

7 0
2 years ago
Other questions:
  • Carrie is looking at the Form Properties Sheet. Which tab will control how the data is displayed and the data source it is bound
    5·1 answer
  • Memory is a _____________ that includes the organization and shaping of information by processing, storage, and retrieval of inf
    15·1 answer
  • How do you change between worksheets inside an excel workbook?
    13·2 answers
  • The fraction 460/7 is closest to which of the following whole numbers?
    11·1 answer
  • Paul has been working long hours. He is tired and distracted by family issues,
    10·1 answer
  • A=1/2h(a+b) solve for h
    6·1 answer
  • Write a program to create a customer bill for a company. The company sells only five products: TV, DVD player, Remote Controller
    12·1 answer
  • Which one is the right code
    10·1 answer
  • How do I indent the 1. bullet so it is not lined up with the regular bullet above it?
    9·1 answer
  • What is draft pls help me​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!