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
leva [86]
3 years ago
15

When a Python program is reading a file, the data is input as plain ASCII characters in a string. What is the following code doi

ng assuming a file is opened with file object inputFile? r_in = inputFile.readline() t = 0 while r_in != '': r = r_in.rstrip('\n') r_list = r.split('|') n = float(r_list[2]) t += n r_in = inputFile.readline()
Computers and Technology
1 answer:
Aleksandr [31]3 years ago
3 0

Answer:

The given python code mainly add values.

Explanation:

In the given python code, a r_in variable is defined, that reads a file in the next line, a while loop is declared, inside the loop "r_in" variable is used that provides slicing in the code.

  • In this code, in the file, each line is the format in field 1 and field 2.
  • The code puts its fields into the list first and then converts into the last dimension to the numerical type before applying to a sum.

You might be interested in
The 16 broad career options developed by the US department of education are called
In-s [12.5K]
The answer is career clusters. 
6 0
3 years ago
______ data is data that has not been processed for use. Multiple choice question. Raw Fast Decision Source
Illusion [34]

Answer: Raw Data

Explanation:

Raw data (sometimes called source data, atomic data or primary data) is data that has not been processed for use.

6 0
2 years ago
Email addresses or domains ______________ are automatically marked as spam. A. on a blacklist B. on a whitelist C. in an address
meriva

The email addresses or domains on a blacklist are automatically marked as spam in the inbox.

<h3>What is an email address?</h3>

A virtual address, which is unique in case of each individual and cannot be replicated for the purpose of sending and receiving mails and attachments, is known as an email address.

Hence, option A holds true regarding an email address.

Learn more about an email address here:

brainly.com/question/14714969

#SPJ1

4 0
2 years ago
If you are the Head of H.R Department in Ali Manufacture Company and you have hire the totally fresh candidates in your company
cluponka [151]

Answer:

on the job training

Explanation:

I would personally suggest on the job training. This is because it provides the new candidates specific experience on how the job will be on a day-to-day basis. This can drastically increase the performance of hired candidates since they will know exactly what and how to perform for that exact company. Also, it will help the candidates get acquainted with the other current employees and even get rid of candidates who would have eventually quit by showing them exactly what the job will be like. Some candidates will realize that the job is not right for them and simply give up and quit.

7 0
3 years ago
You are working at Walmart when a shipment of tee shirts is delivered, the manager asked you to arrange the shirts on the rack b
madreJ [45]

this would be arranging by size. Small < Large usually

6 0
3 years ago
Other questions:
  • An automotive engine’s camshaft rotates?
    10·1 answer
  • List of programming languages and their typing
    5·2 answers
  • If a device does not require a driver, it is _____.
    6·1 answer
  • Can anyone find any words in here?
    14·2 answers
  • Amazon.com uses a customer profiling system whenever a customer visits its website. using this system, amazon can offer products
    6·1 answer
  • What is one purpose of an algorithm
    14·1 answer
  • To whom the script most important
    13·1 answer
  • Where do players resurrect if they have been destroyed in a game?
    13·1 answer
  • A simulation system is a technology that enables you to take over a customer’s screen, mouse, or other connected device in order
    13·1 answer
  • The objective of this task is to use Scapy to estimate the distance, in terms of number of routers, between your VM and a select
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!