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
Sonja [21]
2 years ago
10

Write a function called printRange() that accepts two integers as arguments and prints the sequence of numbers between the two a

rguments, surrounded by brackets ([]) and separated by a comma and a space. Print an increasing sequence if the first argument is smaller than the second; otherwise, print a decreasing sequence. If the two numbers are the same, that number should be printed by itself.
Computers and Technology
1 answer:
a_sh-v [17]2 years ago
5 0

Answer:

def printRange(start, stop, steps = 1):

   list1 = []

   if steps > start or stop:

       print("Steps is larger than start and stop value")

       return None

   if int(start) < int(stop):

       while start < stop:

           start = start + int(steps)

           list1.append(start)

       print(list1)

   elif start > stop:

       while start > stop:

           stop = stop + int(steps)

           list1.append(stop)

       print(list1)

   elif start == stop:

       print(start)

   else:

       print("Values are not integers.")

for easier viewing:

https://www.codepile.net/pile/e95verLk

If you need help understanding comment below.

You might be interested in
Which question is MOST important for an office to consider when upgrading to new software
Marina CMI [18]
Either B or D those are the most reasonable answers if it were up to me to answer i would pick B but that is up to you go ahead and try your best i hope u have a nice day ✨✌️✨
6 0
3 years ago
​ In a systems development life cycle (SDLC) model, the purpose of the _____ is to build a logical model of the new system.
faust18 [17]

Answer:

Systems analysis phase.

Explanation:

In a systems development life cycle (SDLC) model, the purpose of the systems analysis phase is to build a logical model of the new system.

In the systems analysis phase, the system developer examines or analyzes the information or data about the requirements of an end-user, which are then implemented to achieve the organizational set goals and objectives.

Hence, systems analysis refers to the process of gathering data or factual informations, understanding processes, problem identification and suggestions of probable solutions for an effective and efficient functioning of the system.

4 0
3 years ago
"Your friend is having a birthday and you want to create a slide-show presentation with pictures of her that you have saved on y
OleMash [197]
Could you be more specific? So I can help you in the best way I can.
5 0
3 years ago
When one user could perform a query to determine which recordings had a track length of four minutes or more, and another user c
Vikentia [17]

Answer:

In my opinion, the answer is increased flexibility.

Explanation:

When one user performs the query to perform analysis and distribution of recordings as they relate to other categories. This is the advantage of increased flexibility. Data is also flexible in that case because features and variables are recorded before evaluation.

6 0
3 years ago
The _____ document, created during the requirements-gathering and analysis phase of the systems development life cycle (SDLC), i
daser333 [38]

Answer:

The answer to this question is the option "a".

Explanation:

In computer science, the term SDLC stands for Software Development Life Cycle or it is also known as the System Development Life Cycle. This process used by the software industry to produce high-quality software. It aims to produce high-quality software that fulfills customer expectations. The term system specifications is a part of the SDLC. In this part we check the software support the system or not so the answer to this question is system specifications.

6 0
3 years ago
Read 2 more answers
Other questions:
  • What is cryptocurrency ? I need to do a research one it please help!
    6·1 answer
  • The set of appearance choices for files and folders is known as the
    7·1 answer
  • Which is an example of an active visual interface? a display indicating the amount of ammunition for the currently equipped weap
    13·2 answers
  • Write a program that will manipulate Rectangle objects for which you will create a Rectangle class.
    5·1 answer
  • Given an 10-bit two's complement binary number, what is the decimal value of the largest negative integer that can be represente
    10·1 answer
  • If a switch needs to send information to other switches in the network it would send out a ___________.
    7·2 answers
  • If the system has a mechanical advantage of 5 and the load of 350N.What effort is needed to lift the weight? Provide your answer
    10·1 answer
  • An informative presentation can be used for conducting a classroom discussion.
    6·1 answer
  • PLEASE HELP!!!
    8·1 answer
  • Why should data anaylst should learn about computer arichtecture.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!