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
Oksana_A [137]
3 years ago
5

6.5 code practice edhesive questions 1-4

Computers and Technology
1 answer:
Anuta_ua [19.1K]3 years ago
7 0

Answer:

//We need to sum various numbers using a python program, and then store the numbers in a text file.

def sumnum():

   file2 = open("numbers2.txt","w")

   i=5

   while i != 0:

       number=input("Enter the no.")

       file2.write(number)

       file2.write("\n")

       i = i -1

   file2.close()

   file=open("numbers2.txt", "r+")

   number = 0

   sum2 = 0

   for number in file:

       sum2 =sum2 + int(number)

   print(sum2)

   file2.close()

sumnum()

Explanation:

Please check the answer section.

You might be interested in
A class design requires that a particular member variable must be accessible by any subclasses of this class, but otherwise not
a_sh-v [17]

Answer:

The variable should be marked protected.

Explanation:

When class structure implies that some derived classes of such a class have to control a specific member attribute, but still not that classes which aren't members with a similar package instead. To accomplish this, the variable should be marked with protected because the protected data members are not accessed outside that class in which they are declared.

7 0
3 years ago
Can someone tell me what all of these are?
Allisa [31]

Answer:

parts of a camera

Explanation:

5 0
4 years ago
Etna works on many projects. As she creates a new project file, she goes to the File tab, selects Options, and then goes to the
In-s [12.5K]

What Etna is trying to do by going to the file tab and the general section is to Create a new file with a set of parameters.

<h3>Steps to creating a new file.</h3>

In order to create a new file you have to do the following:

  • You have to go to the file tab.
  • Then you go to click options
  • The next is the advanced category
  • the checkbox is located in the general section.

Following all of the steps that are listed above would help Etna as she works on her project.

Read more on ways to create files here:

brainly.com/question/25554117

5 0
2 years ago
¿Cuál es la influencia de las redes sociales en casa?
Natalka [10]
La influencia de las redes sociales en la casa puede variar. Primero puede ser bueno porque podemos usar las redes sociales para ver recetas de cocina para hacer en casa. Segundo puede ser malo porque las personas de la casa podrían sufrir acoso cibernético .
3 0
4 years ago
I need to know how to do this
balandron [24]

Answer:

what do you need to know how to do

5 0
3 years ago
Other questions:
  • Write a function named print_backward that accepts a String as its parameter and prints the characters in the opposite order. Fo
    12·1 answer
  • Your friends know that you understand a lot about computers, both the technical details of how they operate as well as informati
    12·1 answer
  • Why is it important to begin development of a software solution with a programming design in place?
    14·1 answer
  • Which tab is used to edit objects on the slide master and layouts
    10·1 answer
  • Which of the following statements is false? People tend to shortcut security procedures because the procedures are inconvenient.
    13·1 answer
  • Create a structure representing a student. The member variables should include student name, student ID, and four test grades fo
    12·1 answer
  • Using your own words, explain how third-party cookies are created. Suppose you are an ad-serving company, and you maintain a log
    9·1 answer
  • The following are the CPU and I/O behavior of three processes, timings in seconds.
    9·1 answer
  • Which component of cpu controls the overall operation of computer..​
    11·1 answer
  • Many Java programs that you create will receive and process user input. In order to ensure that user input is accurate, you will
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!