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
Tresset [83]
3 years ago
15

The import command can be used to bring into your python program, additional code contained in other python code files. true fal

se
Computers and Technology
1 answer:
Ymorist [56]3 years ago
8 0
True, but it won't be in the same namespace. See below:

>>> import time
>>> print time.time()
1510180694.04
>>> quit()

By doing a straight import I have to reference the namespace time and the function time. (Yeh, I should have picked a different example, but I couldn't think of any)

>>> from time import time
>>> time()
1510180718.76834
>>> quit()

By doing the from, I import the time function into the __main__ namespace so I don't need to reference a name space when I call it.



You might be interested in
EXERCISE 3
balandron [24]

Answer:

The BASIC program is as follows:

SUM = 0

FOR I = 1 TO 20

INPUT SCORES

SUM = SUM + SCORES

NEXT I

AVERAGE = SUM/20

PRINT AVERAGE

Explanation:

This initializes sum to 0

SUM = 0

This iterates through 20

FOR I = 1 TO 20

This reads each score

INPUT SCORES

This calculates the total scores

SUM = SUM + SCORES

NEXT I

This calculates the average

AVERAGE = SUM/20

This prints the calculated average

PRINT AVERAGE

5 0
3 years ago
What were the first microblogs known as
Greeley [361]
The first micro blogs was once known a tumblogs
6 0
3 years ago
Read 2 more answers
Examine the department names for each hypothetical company, and then select the organizational type from the drop-down menu.
zhenek [66]

Answer:

  • Matrix
  • Functional
  • Divisional

Explanation:

If a company has departments such as Video Game Marketing, Movie Marketing, and Toy Marketing, it probably has a functional matrix organizational structure.

If a company has departments such as Sales, Marketing, Operations, and Human Resources, it probably has a divisional functional matrix organizational structure.

If a company has departments such as Northwest, South, and Northeast, it probably has a divisional functional organizational structure

8 0
3 years ago
Read 2 more answers
Some touch screens recognize when you touch the screen with two fingers or two hands. if you are looking for a device on which y
Harrizon [31]
Multi touch screen
check it out at device description
6 0
3 years ago
You should use html elements instead of server controls when
Debora [2.8K]
The server controls are the controls used to get data entries from users and to display data for users. When a form is displayed in a browser then t<span>hese controls are rendered into HTML elements.</span>
<span>You should use HTML elements instead of server controls when the data in the controls isn't going to change. However in situations in which you don't know how to code the HTML elements, then you should use server controls even though the data in the controls isn't going to change.
</span>
5 0
3 years ago
Other questions:
  • 24 bit or 16 million colors is often called?
    7·1 answer
  • Data silos are often associated with ________________.
    12·1 answer
  • What is the advantage of using a subject directory like the public internet library ?
    11·1 answer
  • The tools that cyber criminals often use, including computer viruses, worms, trojan horses and spyware, are called __________. q
    5·1 answer
  • When you purchase software in a box, reading the ________ is important to know if the software will function properly?
    13·1 answer
  • Which risk management framework does the organization of standardization publish
    13·1 answer
  • What is the advertising photographer’s main objective in creating an image?
    11·1 answer
  • Which programming language is fortnite created in?
    11·2 answers
  • Write a method called sum with a while loop that adds up all numbers between two numbers a and b. The values for a and b can be
    11·2 answers
  • Place a check next to each of the choices that describe an example of proper ergonomics. (more than 1 answer)
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!