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
miv72 [106K]
3 years ago
8

Print a countdown from n to 1 The function below takes one parameter: an integer (begin). Complete the function so that it print

s the numbers starting at begin down to 1, each on a separate line. There are two recommended approaches for this:
(1) use a for loop over a range statement with a negative step value, or

(2) use a while loop, printing and decrementing the value each time.

student.py 1 - def print_countdown(begin): # Implement your function here. Be sure to indent your code block! Restore original file
Computers and Technology
1 answer:
Luba_88 [7]3 years ago
4 0

Answer:

Explanation:

>>> def print_countdown(begin)

>>> i = begin

>>> while i < 1:

>>>  print(i)

>>>  i = i - 1

>>>print_countdown(0)

You might be interested in
If the task is to write firewall specifications for the preparation of a(n) ____, the planner would note that the deliverable is
Tpy6a [65]

Answer:

RFP

Explanation:

It is the type of document that is used to ask vendors to propose the solutions of problem that are faced by customer. It is the abbreviation of "Request for Proposal". This proposal is processed though the bidding, to offer the services or submit business proposals by vendors.

4 0
3 years ago
Voltage drop across the resistor
harkovskaia [24]

Okayy, but what is your question? As soon as you post it, I'll be glad to answer it.  :)

4 0
4 years ago
Write a program that reads and unspecified number of integers, determines how many positive and negative values have been read,
KonstantinChe [14]

Answer:

The program was wrote in the version 3.9.5 of python and it's in the homework.txt file.

Download txt
6 0
3 years ago
A frameset should only be used with XHTML true or false
Naddik [55]
Framesets require a special DTD. If you're writing XHTML and want to use the strict DTD, you can't use frames/framesets.
4 0
3 years ago
Steve adds a second 1-GB 240-pin DIMM to his PC, which should bring the total RAM in the system up to 2 GB. The PC has an Intel
egoroff_w [7]

Answer:

Option A is correct.

Explanation:

He attaches the second 1 Gigabyte 240 pins DIMM for his system the overall RAM will be up around 2 Gigabytes. System is fitted with Intel Core 2 Dual 3-GHz cpu as well as three 240 pins DIMM ports on the motherboard. Transforms on a system, just 1 Gigabytes of RAM is seen through that RAM count.

Thus, the following issue is much more probably to be the failure to correctly grab that RAM.

5 0
4 years ago
Other questions:
  • What is the on board storage C:
    15·1 answer
  • What are 5 actions that you can do to take care of your camera
    14·2 answers
  • Using the slice operator, print your first, then last name.2. Print the length of your first name.3. Assume you have two variabl
    6·1 answer
  • Prove, using mathematical induction, that the given property of the Fibonacci numbers is true [F(n+1)]2 =[F(n)]2+F(n−1)∗F(n+2) f
    5·1 answer
  • What software development model focuses on improving the product in small steps each time through the cycle?
    14·2 answers
  • Hardware refers to programs and protocols used on a computer system.<br><br> True<br> False
    8·2 answers
  • LAB: Parsing dates in M/D/Y format
    5·1 answer
  • 5.5 Learning Objective: To demonstrate that the student understands the definition of Big O. To demonstrate that the student und
    11·1 answer
  • How to print something nad input on same line python
    8·1 answer
  • True or False: Once you rename a field, the new field name must be used in the rest of the search string.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!