A Python file that contains variables and functions and can be used in other programs is called a

A Python File That Contains Variables And Functions And Can Be Used In Other Programs Is Called A

Answers

Answer 1

Answer:

module

Explanation:

class - something that can be used to create objects

documentation - provides information on the program and how to use it

dictionary - a set of keys and terms that match with keys


Related Questions

The code __ will display the filename of the current workbook. ​

Answers

code field displays file names

Write a program to convert kilometers/hr to miles/hr. The program should produce a table of 10 conversions, starting at 60 km/hr and incremented by 5 km/hr. The display should have appropriate headings and list each km/hr and its equivalent miles/hr value. Use the relationship that 1 kilometer = 0.6241 miles. Implement this program using the FOR loop. Sample output is given below: write a c++ programe Page 1 of 2 I KM per hour Miles per hour 60 37.4460 65 40.5665 70 43.6870 46.8075 80 49.9288 85 53.0485 90 56.1690 95 59.2895 100 62.4100 105 65.5305​

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

   float speed_in_km_per_hr = 60;

   

   // Output table head

   cout << "km/hr  miles/hr." << endl;

   

   for (int i = 0; i < 10; i++)

   {

     // Convert KM/hr to miles/hr

     float speed_in_miles_per_hr = speed_in_km_per_hr * 0.6241;

     

     // Output speeds

     cout << speed_in_km_per_hr << "     " << speed_in_miles_per_hr << endl;

     

     // Increase by 5

     speed_in_km_per_hr = speed_in_km_per_hr + 5;

   }

     

   return 0;

}

Explanation:

Determine whether the compound condition is True or False.
2 <3 and 5 <1
3 <3 or 1 ≤1
not (2 == 3)​

Answers

The given compound conditions would be considered true or false as follows:

2 <3 and 5 <1 is  false.3 <3 or 1 ≤1 is true.not (2 == 3) is true.

How do you know if a statement is true or false?

A statement is said to be true if what it shows is the case, and it is false if what it shows is not the case.

Based on what is given above, The given compound conditions would be considered true or false as follows:

2 <3 and 5 <1 is  false.3 <3 or 1 ≤1 is true.not (2 == 3) is true.

Learn more about 'Compound Condition' from:

https://brainly.com/question/18450679

#SPJ1

1) What is Database? List its Uses.

Answers

Answer:

a database stores a large sum of data

Explanation:

its used to keep track of things like student names bank accounts and other things

How could you use the sqrt function from the math module to print the square root of 16?

Answers

Answer:

b

Explanation:

It is not "import sqrt" because import is used to add a module, and "sqrt" is not a module.

It is not sqrt(16) because we need to use the math. prefix so that python recognizes that sqrt is a function from the math module.

During the POST process, the BIOS uses two (2) different ways to notify you of a problem, Error beep codes and error messages, explain how they work.​

Answers

Error beep codes works by giving different kinds of codes as each codes stands to tell the user the issue with the computer  and error messages are known to be in massage format.

How BIOS report when there's an error?

The BIOS is known to use three methods for reporting errors. They are;

Beep codesError/status codesOnscreen messages

Therefore, one can say that Error beep codes works by giving different kinds of codes as each codes stands to tell the user the issue with the computer  and error messages are known to be in massage format.

Note that A good error message contains the problem identification, reason in details and the  solution if it is known to be possible.

Learn more about BIOS from

https://brainly.com/question/1604274

#SPJ1

What's good computing?

Answers

Answer:

1.Use passwords that can't be easily guessed, and protect your passwords.

2.Minimize storage of sensitive information.

3.Beware of scams.

4.Protect information when using the Internet and email.

5.Make sure your computer is protected with anti-virus and all necessary 6.security "patches" and updates.

7.Secure laptop computers and mobile devices at all times: Lock them up or carry them with you.

8.Shut down, lock, log off, or put your computer and other devices to sleep before leaving them unattended, and make sure they require a secure password to start up or wake-up.

9.Don't install or download unknown or unsolicited programs/apps.

Secure your area before leaving it unattended.

10.Make backup copies of files or data you are not willing to lose.

Explanation:

Select the skill that matches the following definition.​

treating others the way you want to be treated regardless of ethnicity, religion, gender, or orientation:
work ethic
integrity
respect
leadership

Answers

Answer: Respect

Explanation: Treat others with respect if you want to be treated with respect

Fara is a bit frustrated with trying to write computer programs. Which of the following might be helpful? A. systems software B. typing practice C. new hardware D. presentation software

Answers

Answer:

D

Explanation:

Presentation software is defined as computer programs designed to allow the user to present information in an engaging way such as with text, pictures, sound and video. PowerPoint is an example of a presentation software.

What is the output?


>>>import time

>>>time.localtime()


a. the number of seconds since the epoch


b. the user's time zone


c. the date


d. the time


e. the time-zone offset


It is a select all that apply type of question

Answers

Answer:

a. the number of seconds since the epoch

Explanation:

time.localtime(), returns the number of seconds since the epoch if no argument is passed oyherwise it return struct_time in local time if you pass in seconds since epoch

What is the "Driver's Compact Law"?

Answers

Answer:

Explanation:

The Driver License Compact is an interstate compact used by States of the United States to exchange information concerning license suspensions and traffic violations of non-residents and forward them to the state where they are licensed known as the home state.

The Driver License Compact is an interstate compact used by States of the United States to exchange information concerning license suspensions and traffic violations of non-residents and forward them to the state where they are licensed known as the home state.

The two types of Desktop Publisher (DTP) frames for entering information are ... and ...​

Answers

Answer:

digital pages and virtual paper pages

The two types of Desktop Publisher (DTP) frames for entering information are digital pages and virtual paper pages.

What do you mean by Desktop publishing?

Desktop publishing may be defined as the process of creating or manufacturing documents through the utilization of page layout software on a personal computer. It may be characterized as the utilization of personal computers in order to design books and booklets that are intended to be printed by inkjet or laser printers.

There are two types of pages that are used for the same intention of designing books, booklets, documents, etc. These pages are known as digital pages and virtual pages. Both these pages are used for specific functions in order to allow users, businesses, and other organizations, to self-publish a wide variety of content.

Therefore, digital pages and virtual pages are the two types of Desktop Publisher (DTP) frames that are used for entering information.

To learn more about Desktop publishing, refer to the link:

https://brainly.com/question/7221406

#SPJ2


The primary memory consists
.... and ...
a) Pendrive b) Hard Disk c) RA
d) Scanner e) ROM

Answers

Answer:

RAM and ROM

Explanation:

Primary memory is random access memory that a processor or computer accesses first or directly. It enables a processor to access running execution apps and services stored in a specified memory address.

Answer:

ROM and RAM (c And e)

You work at a computer store and a client approaches you, asking you to recommend a computer that she can buy for her son who wants to use the computer for gaming.
Identify the components to consider and provide examples of certain specifications to each component that would be suitable to work for a gaming computer. Also provide the best type of cooling system.

Answers

A good gaming computer shall have at least an i5 processor with liquid cooling system with a good graphic card to ensure lag-free gaming.

What are the essentials of a good computer?

A good computer shall have all the connectivity options with good features and best-in class performance. Storage capacity should be high. Furthermore, processor shall be of top-notch and latest quality.

Hence, the essential technical specifications of a computer.

Learn more about computers here:

https://brainly.com/question/21080395

#SPJ1

9.2.8 last names codehs

Answers

Using the knowledge of computational language in python it is possible to write a code that tries to organize the names in an assorted way and any name can be included.

Writing code in python:

names_list = []

for i in range(0, 5):

   names_list.append(input("Name: "))

sorted_last_names = sorted([name.split()[-1] for name in names_list])

print(sorted_last_names)

See moer about python at brainly.com/question/18502436

#SPJ1

What is the value of this expression:
‘there' == 'here'

Answers

Answer: undefined

Explanation:

just gonna answer it instead of it being a comment

Write a for loop that displays the following numbers exactly like this (you must use a loop):

3 7 11 15 19

Hint: notice the pattern of the numbers

Answers

Answer:

I will use c++ for this...

#include <iostream>

using namespace std;

int main() {

 int num = 0;

 int curr = 0;

 for (int i = 0; i<5; i++) {

   num = 3 + curr;

   cout << num << " ";

   curr += 4;

 }

}

public class Pyramid {

 public static void main(String[] args) {\

            int h = 7;

      System.out.println("Pattern A");

              for(int i = 1; i <= h; ++i)

              {

                  for(int j = 1; j <= i; ++j) {

                      System.out.print("+");

                  }

                  System.out.println();

              }

      System.out.println();

      System.out.println("Pattern B");

              for (int i = 1; i<=h; ++i)

              {

                for(int j = h; j >=i; --j){

                    System.out.print("+");

                }

                  System.out.println();

              }

          }

      }

What is the trick in this code is using a nested for loop?

The trick in this code is using a nested for loop

The outer for loop runs from i = 0 to the height of the triangle (in this case 7)

The inner for loop which prints the (+) sign runs from j = 0 to j<=i

It prints the + using the print() function and not println()

In the pattern B the loop is reversed to start from  i = height

Time and space are examples of an infinite loop, but I would also include human life. The water cycle is an example of a while loop since it will continue as long as the earth and water do. But the planet Earth probably won't last forever.

For loop: As the previous commenter noted, someone who works hard every month would be regarded as a for loop.

To learn more about infinite loop ,for loops, while loops refer to:

brainly.com/question/13148070

#SPJ7

What data type does the in operator return?

Answers

[tex]\huge\red{Hi!}[/tex]

The Operator data type is any expression that is parsed and returns a value, such as tod() , gui() , rtecall() , = (comparison). An operator is a special symbol or function commonly used in expressions.

i need help someone please !!

Answers

Work samples can be printed or placed on the web and should be appropriate for the job you are appyling for.

What is a work sample?

This is a sample such as a document that shows the interviewer the skills of the candidate to complete specific task. For example if the candidate is applying to a editor position, he/she can bring a sample of edition.

What are the characteristics of work samples?This should be done by the candidate.It should be relevant to the job applied.It can be online or printed.

Learn more about sample in: https://brainly.com/question/11045407

#SPJ1

Which of these agents of education empowers the other..........
A. Family
B. SCHOOL
C. Media
D. Church

Answers

Answer:

B. school

Explanation:

Because the school is where you learn and gain knowledge

B. School.

Explanation; Education is the main factor in school, Therefore B seems like the only right answer. Hope this helped:)

PART 2 - Exercise 2 - Programming Assignment

Case study:

An event company asks you to design the data structure and program prototype for their running event system. The participant for the running event is expected to reach more than 1000 in various categories. You decided to use hashing function method to store the information for each participant's BIB number in the hash table.

To begin the problem solving, suppose that 10 registered runners need to be stored. The sample BIB number of the runners are: 101, 102, 103, 104, 107, 111, 121, 217, 157, and 185. Apart from BIB number, participant information also contains a name (string), category (int) -e.g., men open (1), women open (2)), and runtime (int). The default value for runtime is 0 (represent 0 minutes).

Suppose that a linked list is used as

a data structure for the hash table, create a program that a. Implement the hashing functions for this problem. You can accept up to 10 inputs from the user or read from a formatted text file of participant information.
b. Create the hashing function that will handle any collision as chaining.
c. Find a bib number and print out the information
d. Print out the content of the linked hash table.​

Answers

Suppose that a linked list is used as a data structure for the hash table, create a program that includes steps his application counts the number of phrases in documents decided on via way of means of the user #include.

What is Programming?

It is the manner of making hard and fast commands that inform a pc the way to carry out a task. Programming may be finished the usage of lots of pc programming languages, inclusive of JavaScript, Python, and C++.

This application counts the quantity of phrases in documents decided on via way of means of the user.#include #include #include the usage of namespace std; //Function 1 int count(string word)go back word.size();}//Function 2int vowel(string word)> filename;//Open the {input|enter">enter file.inputfile.open(filename.c_str()); cout<<"nWord listing after format";cout<<"n____nn"; //If the file succesfully opened, process it.if (inputfile).

Read more about program :

https://brainly.com/question/1538272

#SPJ1

Juan plans on using an algorithm to make cookies. What is the step that he should follow immediately after he makes the cookies? A. be sure that he has read the directions properly B. clean everything up C. review his experience D. decide what to bake next

Answers

The step that Juan should follow immediately after he makes the cookies is to review his experience.

What is algorithm?

An algorithm is known to be the way used for handling a problem or carrying out a computation.

Note that The step that Juan should follow immediately after he makes the cookies is to review his experience as he will be able to know if his algorithm  is correct or not.

Learn more about algorithm from

https://brainly.com/question/25978728

#SPJ1

Discuss the importance of following a well-integrated change control process on IT projects. What are the consequences that can result from not following the best practices?

Answers

The projects that deal with the information system and the computer technology are called IT projects. To reduce the redundancy rates the change control processes are followed.

What is redundancy?

Redundancy is the state of the dismissal or the unuseful components that are the extra parts of the system and can act as the error. So, to avoid redundancy useful resources should be allocated.

To avoid the error and confusion between the two groups working on the same data. These types of changes are important for projects like small tasks, QC and QA, and for the big project research and development.

Therefore, to reduce the redundancy rate well-integrated changes are adopted.

Learn more about IT projects here:

https://brainly.com/question/15239278

#SPJ1

At a murder scene, you have started making an image of a computer’s drive. You’re in the back bedroom of the house, and a small fire has started in the kitchen. If the fire can’t be extinguished, you have only a few minutes to acquire data from a 10 GB hard disk. Discuss your options for preserving the data

Answers

To preserve data, If you've previously emptied the RAM and registry, you may simply disconnect the power from the rear of the PC and remove the drive from the case; otherwise, if you want to save the entire system, you can carry the entire case with you.

What is a hard disk?

A hard disk drive or hard drive is a storage device that store data in an electronic device.

Thus, to preserve data, If you've previously emptied the RAM and registry, you may simply disconnect the power from the rear of the PC and remove the drive from the case; otherwise, if you want to save the entire system, you can carry the entire case with you.

Learn more about hard disk

https://brainly.com/question/14504942

#SPJ1

Which statement best describes how the programming layer of abstraction in
a computing system functions?
A. It processes data using switches.
B. It allows computers to make animations.
C. It provides an interface for users to input data.
D. It processes data to perform computations.

Answers

The statement that best describes how the programming layer of abstraction in a computing system functions is that It provides an interface for users to input data.

What is the abstraction about?

In computer science, an abstraction layer is known to be full generalization of a kind of concept or algorithm, that is seen far from any particular implementation.

Note that generalizations is due to a lot of similarities that are best contained by models that shows similarities present in a lot of specific implementations.

Therefore, The statement that best describes how the programming layer of abstraction in a computing system functions is that It provides an interface for users to input data.

Learn more about abstraction from

https://brainly.com/question/7994244

#SPJ1

On September 1, Year 1, a company paid an $21,600 premium on a 36-month insurance policy for coverage beginning on that date. Refer to that policy and fill in the blanks in the following table.

Answers

What is an insurance policy for coverage?

Coverage is a prison agreement between the coverage company (the insurer) and the person(s), business, or entity being insured (the insured). Reading your coverage facilitates you to confirm that the coverage meets your desires and that you apprehend your and the coverage company's duties if a loss occurs.

Read more about the insurance:

https://brainly.com/question/25855858

#SPJ1

Manny has drafted an email message and configured a delivery option "Do not deliver before: 5:00 P.M. and today's date." He shuts down his computer and leaves for the day at 4:30 p.m. What will happen at 5 p.m.?

The message will be delivered from the server.
The message will be delivered from Manny’s computer.
The message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.
The message will remain in Manny’s outbox until the computer is started, and he will be prompted to send.

Answers

In this scenario: C. the message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.

What is Microsoft Outlook?

Microsoft Outlook simply refers to an e-mail and task management software application that is designed and developed by Microsoft Inc., so as to avail end users an ability to send electronic messages, schedule and plan their work activities on a timely basis.

Based on the time schedule, what would happen is that: C. the message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.

Read more on Microsoft Outlook here: https://brainly.com/question/1538272

#SPJ1

Copy and paste your code from the previous code practice. If you did not successfully complete it yet, please do that first before completing this code practice.

After your program has prompted the user for how many values should be in the array, generated those values, and printed the whole list, create and call a new function named sumArray. In this method, accept the array as the parameter. Inside, you should sum together all values and then return that value back to the original method call. Finally, print that sum of values.

Answers

The code practice illustrates the following concepts:

Arrays or ListsMethods or Functions

The program in Python

The program written in Python, where comments are used to explain each action is as follows:

#This imports the random module

import random

#This defines the sumArray method

def sumArray(myList):

   #This initializes the sum to 0

   isum = 0

   #This iterates through the list

   for i in myList:

       #This adds the array elements

       isum+=i

   #This returns the sum

   return isum

#This gets the number of values    

n = int(input("Number of values: "))

#This initializes the list

myList = []

#This iterates from 0 to n - 1

for i in range(n):

   #This populates the list

   myList.append(random.randint(0,100))

#This prints the list

print(myList)

#This calls the sumArray method

print(sumArray(myList))

   

Read more about Python programs at:

https://brainly.com/question/24833629

#SPJ1

Which measure is best to use to avoid outliers from corrupting the average?

Answers

A measure which is best to use to avoid outliers from corrupting the average is: C. mode.

What is an outlier?

An outlier can be defined as a numeral that is either unusually too small or large in comparison with the overall pattern of the numerals contained in a data set.

In Statistics, mode is a measure which is best to use to avoid outliers from corrupting the average because it takes into consideration the most frequently occurring numerals in a data set.

Read more on outlier here: brainly.com/question/10600607

#SPJ1

What effect have computers had on your life?​​

Answers

Answer:

they are both a pain and a help

Explanation:

Computers can and do make life easier with access to more things ,in a simpler way and they are necessary for the way we live but sometimes they can cause stress, maby from what is on them or even things as simple and the responsibility of having one. Personally I do think they are more helpful than a stress creator.

Other Questions
HURRYListen to the instructions carefully, then choose the phrase that best answers each question.What is the second step in detecting bias?How can you test whether there is selection bias in a news article? Zahara asked the students of her class their gymnastic scores and recorded the scores in the table shown below:Gymnastic ScoresScore Number of Students0 11 12 23 64 45 36 2Based on the table, what is the mean gymnastic score? (1 point)2.53.55.29.4 1Select the correct answer from each drop-down menu.Earth's atmosphere helps to regulate its temperature. However, the addition of gases such ascauses more energy to radiate backtoward Earth. As a result, the atmospheric temperature increases over time.If Earth had no atmosphere, it would radiate nearly as much energy as it receives from the Sun. This implies that the temperatures on Earth wouldbeEarth's current temperature. Emma rubs suntan lotion into her hands. At first her hands stay cool. After the cream is absorbed, her skin begins to get warm. Why do her hands stay cool while there is suntan lotion between them What does he think is IMPORTANT in life?A long way gone by Ishmael Beah Match each school of thought with a topic that a historian from that school would most likely study.political historysocial historycultural historyeconomic historythe development of the Americanart form known as abstractexpressionism in the 1950s (Look at image) Which was a result of the south vietnamese surrender? the establishment of vietnamization the implementation of the paris peace accords the attack on the capital city of saigon the communist control over all of vietnam Which sentence correctly uses one or more commas to set off a nonrestrictive clause? O A. Adrianna who is the oldest of her siblings, is running for class president. B. Mrs. Smith, whose son attends my school, is my favorite teacher. OC. Thomas Jefferson the second president of the United States was a farmer. OD. My father, who grew up in the country prefers city living. Explain how the development of agriculture and the green revolution both affected humans. then explain how agriculture and the green revolution affected the environment. please be detailed in your response and write in complete sentences for full credit. please help meeee, much appreciated!!!!!! What was the first state to make july fourth an official holiday?. Which describes the U.S. crime rate over the last decade? We can use radicals if needed, and we need to simply. write three characteristics of fungi The Law, Public Safety and Security career cluster has five different andchallenging pathways that lead to specific occupations that share manysimilarities. . Triangle EFG has vertices E(-2, 1), F(-1, 4), and G(3, 4). Graph the figure and its image after a clockwise rotation of 90 about vertex F. Then write the coordinates of triangle E'F'G'. given set P={3,6,9}.How many subset can be formed Substance x is known to exist at 1 atm in the solid, liquid , or vapor phase, depending on the temperature. additionally, the values of these other properties of xhave been determined The fact that women often feel pressured to conform to society's expectations is a common feminist theme foundwithin literature. As this theme appears within part two of Trifles, which pair of symbols most strengthens this theme? towel, table bottle of fruit, birdcage breadbox, cats quilt, bird Roman says that the risk of osteoporosis can be reduced by making certain lifestyle choices. Which lifestyle choice could Roman be referring to? O increasing social interaction opportunities O lowering salt intake O managing stressful situations O increasing calcium intake