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
bearhunter [10]
3 years ago
5

Name the Python Library modules which need to be imported to

Computers and Technology
1 answer:
Marina CMI [18]3 years ago
5 0

Answer:

i. site.py module

ii. random integer module

Explanation:

i. The exit() function is a function used to end a program in python and can only be called when the site.py module is present. The site.py module comes pre-installed with Python.

<u>So, the site.py module needs to be imported for the exit() function to be invoked.</u>

ii The randint() function is a function used to generate a random integer between two limits- a lower limit and a higher limit. The randint() function can be called when the random integer module is present.

<u>So, the random integer module needs to be imported to invoke the randint() function.</u>

You might be interested in
En la historia del Computador porque se caracteriza la primera generación? *
Nadusha1986 [10]

D. Por el uso de tubos de vacio.

8 0
3 years ago
Input 3 positive integers from the terminal, determine if tlrey are valid sides of a triangle. If the sides do form a valid tria
butalik [34]

Answer:

In Python:

side1 = float(input("Side 1: "))

side2 = float(input("Side 2: "))

side3 = float(input("Side 3: "))

if side1>0 and side2>0 and side3>0:

   if side1+side2>=side3 and side2+side3>=side1 and side3+side1>=side2:

       if side1 == side2 == side3:

           print("Equilateral Triangle")

       elif side1 == side2 or side1 == side3 or side2 == side3:

           print("Isosceles Triangle")

       else:

           print("Scalene Triangle")

   else:

       print("Invalid Triangle")

else:

   print("Invalid Triangle")

Explanation:

The next three lines get the input of the sides of the triangle

<em>side1 = float(input("Side 1: ")) </em>

<em>side2 = float(input("Side 2: ")) </em>

<em>side3 = float(input("Side 3: ")) </em>

If all sides are positive

if side1>0 and side2>0 and side3>0:

Check if the sides are valid using the following condition

   if side1+side2>=side3 and side2+side3>=side1 and side3+side1>=side2:

Check if the triangle is equilateral

<em>        if side1 == side2 == side3: </em>

<em>            print("Equilateral Triangle") </em>

Check if the triangle is isosceles

<em>        elif side1 == side2 or side1 == side3 or side2 == side3: </em>

<em>            print("Isosceles Triangle") </em>

Otherwise, it is scalene

<em>        else: </em>

<em>            print("Scalene Triangle") </em>

Print invalid, if the sides do not make a valid triangle

<em>    else: </em>

<em>        print("Invalid Triangle") </em>

Print invalid, if the any of the sides are negative

<em>else: </em>

<em>    print("Invalid Triangle")</em>

4 0
3 years ago
What output will the look up formula below produce in relation to the following table?
noname [10]

Answer:

The VLookup checks a value inside a table through matching over the 1st column.

Lookup a value in a table by matching on the first column and the matched value is returned from the table.

Explanation:

The formula for the VLOOKUP is

=VLOOKUP (value to be matched in the first column, table from which the value will be looked for, col_index is the column inside the table from where the value is fetched, [range_lookup] is true for the approximate match, and false for exact match)

5 0
3 years ago
LAB: Winning team (classes)
andrey2020 [161]

Answer:

The function is as follows:

def get_win_percentage(self):

       return self.team_wins / (self.team_wins + self.team_losses)

Explanation:

This defines the function

def get_win_percentage(self):

This calculates the win percentage and returns it to main

       return self.team_wins / (self.team_wins + self.team_losses)

<em>See attachment for complete (and modified) program.</em>

Download txt
6 0
3 years ago
Say you're designing your own operating system, and you want to implement your own paging system. Give one advantage of having s
zheka24 [161]

Answer and Explanation:

Advantages of having large page sizes: Smaller page table, less page faults, less overhead in reading/writing of pages.

Advantages of having small page sizes: reduces internal fragmentation, better with locality of reference.

7 0
4 years ago
Read 2 more answers
Other questions:
  • Why should you delete files from your computer? (multiple answers can be chosen)
    5·2 answers
  • How many answer or point do I answer/need to sent message?
    6·1 answer
  • Readability is the level of vocabulary used on the page. True or false
    8·1 answer
  • why are the ads you might see on tv between 8am and 10am usually not the same ads you would see between 8pm and 10pm?
    12·1 answer
  • What is the google search operator that limits results to a specific domain?
    8·1 answer
  • What is a cpu in full explanation?
    7·2 answers
  • Any computer expert to help me answer this question.. am giving brainliest
    13·1 answer
  • What are some advantages to having ads tailored to your data?
    15·1 answer
  • PLEASE ANSWER
    6·1 answer
  • One of 34 possible _________________ can be assigned to each axis of classification in the seven-character code.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!