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
Trava [24]
4 years ago
14

The function below takes two integer parameters: low and high. Complete the function so that it prints the numbers from low to h

igh in order, including both low and high, each on a separate line. The recommended approach for this question is to use a for loop over a range statement.
1 def print_range(low, high):

2 # Implement your function here. Be sure to indent your code block!

Computers and Technology
1 answer:
NikAS [45]4 years ago
5 0

Answer:

def print_range(low, high):

 for i in range(low,high):

   print(i)

Explanation:

Create the function to accept two parameters (low and high)

Use a for loop to iterate from low to high using the range function

Print the value at each iteration

See a complete program and output below.

<em>def print_range(low, high): </em>

<em>  for i in range(low,high):</em>

<em>    print(i)</em>

<em>low = 1</em>

<em>high =10</em>

<em>print_range(low, (high+1)) </em>

<em />

You might be interested in
A final class can't be extended.<br><br> *True<br><br> *False
postnew [5]

Answer:

The answer is True.

Explanation:

The final class cannot be extended because in java final keyword means "no modification". If it is applied to a variable or anything else then that value becomes a constant after that it cannot be modified.So in cases of class if final keyword is used it means that class cannot be extended.

8 0
3 years ago
Identify two related tables in the JustLee Books database. Identify the common field between the two tables. Decide which column
Hatshy [7]

Answer:

Answers explained below

Explanation:

<u>The two related table are: </u>

i) Books Table

ii) BOOKAUTHOR Table

<u>The common field between the two tables are: </u>

i) ISBN attribute

<u>The columns that i would like to display are: </u>

Title, ISBN, AuthorID, PubID, PubDate, Cost, Retail, Discount, Category

<u>Sql Code to join tables using where clause </u>

select t1.Title, t1.ISBN, t2.AuthorID, t1.PubID, t1.PubDate, t1.Cost, t1.Retail, t1.Discount, t1.Category from Books t1 INNER JOIN BOOKAUTHOR t2 ON t1.ISBN = t2.ISBN where t1.ISBN = 0401140733

The above query will dispaly the attributes of table "Books" and of table "BOOKAUTHOR" for book ISBN 0401140733

<u>Repeat problem 1 but remove the WHERE statement </u>

After removing the where condition we will have following join query

select t1.Title, t1.ISBN, t2.AuthorID, t1.PubID, t1.PubDate, t1.Cost, t1.Retail, t1.Discount, t1.Category from Books t1 INNER JOIN BOOKAUTHOR t2 ON t1.ISBN = t2.ISBN

The above query will display all the mapping data of table "Books" and of Table "BOOKAUTHOR"

7 0
4 years ago
!!! 20 points !!!!!
puteri [66]

Answer: I need more info to answer this question

Explanation:

8 0
2 years ago
What happens when you apply a theme to a form?
Ludmilka [50]

Answer:

it will be customizable, you can design it in a different style

Explanation:

4 0
3 years ago
What a promblem Hypothesis<br>​
Alex73 [517]

Answer:

Essentially, the hypothesis statement is a prediction for what you think will happen if you take a certain type of action to resolve a problem. The hypothesis usually identifies what is going to be changed and the action's potential outcome, as well as why you think the change will have that particular result.

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • #Write a function called "angry_file_finder" that accepts a #filename as a parameter. The function should open the file, #read i
    13·1 answer
  • Which is better to use for cleaning electronics, Ethyl alcohol vs isopropyl alcohol?
    14·1 answer
  • Which of the following is an acrostic RAM association mnemonic device or Please Excuse My Dear Aunt Sally.
    9·2 answers
  • How do you plan to keep your personal and professional connections and activity seperate on various social media platforms?
    15·1 answer
  • When deciding how to invest your money, which of the following is least important to know
    7·1 answer
  • What is a catalyst? a chemical found in leaves a chemical which promotes a chemical reaction a chemical which reacts with sunlig
    10·1 answer
  • What is the full form of IE? ​
    9·1 answer
  • Wiliam would like to sort a list of items after the data is already entered
    7·2 answers
  • In this program we are going to practice using the Math class by computing some important values on the unit circle. Using the a
    5·1 answer
  • Write a program to find all integer solutions to the equation 4x + 3y -9z = 5 for values of x, y, and z between 0 to 100.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!