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
Free_Kalibri [48]
3 years ago
7

A function named function1 is defined in a module named module1. Suppose function1 has no parameter. Which of the following Pyth

on program fragments will successfully call function1 from another module?A. import module1module1.function1()B. from module1 import function1function1()C. both (A) and (B)D. none of the above
Computers and Technology
1 answer:
Oduvanchick [21]3 years ago
7 0

Answer:

Option C i.e., both A and B is the correct option to the following question.

Explanation:

Because in the following statement which is for the Python Programming Language, they can define the function i.e., "function1" without any argument and they can call that function with the help of another module then, they can call that function by using both methods. So that's why the following option is correct.

You might be interested in
Select three physical forms of storage. USB drive Primary cache Magnetic storage Secondary cache Dynamic RAM Optical drive
Elis [28]

Answer:USB drive

Magnetic storage

Optical drive

Explanation:

hope this helps

6 0
3 years ago
Read 2 more answers
I need help answering these questions!
Elanso [62]
1. telephone
2. Telegraph machine
4 0
3 years ago
Zach wants to learn a programming language to create games and applications. this programming language will also create web appl
Mkey [24]

Answer:

JavaScript is a good option

6 0
3 years ago
Read 2 more answers
How do scientists plan on unlocking the secrets to Mars?
zmey [24]
Sending rovers and other explorers I think
3 0
3 years ago
Read 2 more answers
In python 3.17 LAB: Convert to dollars
krok68 [10]

To convert the inputs to dollars and cents, we make use of a combination of multiplication and addition.

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

<em />

<em>#This gets input for the number of quarters</em>

quarters = int(input("Quarters: "))

<em>#This gets input for the number of dimes</em>

dimes = int(input("Dimes: "))

<em>#This gets input for the number of nickels</em>

nickels= int(input("Nickels: "))

<em>#This gets input for the number of pennies</em>

pennies= int(input("Pennies: "))

<em>#This converts the amount to dollars and cents</em>

dollars = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01

<em>#This prints the amount to 2 decimal places</em>

print("Amount ${:.2f}".format(dollars))

Read more about Python programs at:

brainly.com/question/22841107

7 0
3 years ago
Other questions:
  • Gina is upgrading your computer with a new processor. She installs the processor into your motherboard and adds the cooling syst
    5·2 answers
  • How many bones are in a human body
    7·2 answers
  • How do you mark somebody the brainliest?
    14·2 answers
  • Which logic gate produces an output of 1 only if both it’s inputs are 0?
    10·2 answers
  • Write an application named [LastName]_MultiplicationTable and create a method that prompts the user for an integer value, for ex
    11·1 answer
  • While technology has impacted many aspects of marketing. it has had little effect on database marketing
    5·2 answers
  • What computer worm was used to sabatoge iran's nuclear program?
    11·1 answer
  • 2 A_______<br> uses graphics or pictures to help the user navigate and<br> access programs
    14·1 answer
  • What is the most common password on the internet?
    11·2 answers
  • Write a Boolean expression that tests if the value stored in the variable num1 is equal to the value stored in the variable num2
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!