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
ser-zykov [4K]
3 years ago
13

1.21 LAB: Divide by x

Computers and Technology
2 answers:
dangina [55]3 years ago
3 0

Answer:

Explanation:

The following code is written in Python. It is a function called divide_by_x and takes the user inputs as described. It then raises x to the third power and divides user_num by that number. This gives the same result as user_num divided by x three times. The answer is saved in the variable answer which is then returned to the user.

def divide_by_x(user_num, x):

   answer = user_num / (x**3)

   return answer

Feliz [49]3 years ago
3 0

Answer:

Explanation:

So I am pretty new to scripting so what I have is inelegant but it worked.

user_num = int(input())

x = int(input())

t1 = user_num//x

print(user_num//x, end = ' ')

t2 = t1//x

print(t1//x, end = ' ')

t3 = t2//x

print(t2//x, end = '\n')

You might be interested in
A type of graph that uses horizontal bars to compare data is called a
sergiy2304 [10]
The answer is A) a bar graph

6 0
4 years ago
Read 2 more answers
Ayoooo new friends? btw imma girl
liberstina [14]
Yup, me ... i wanna be friends
4 0
3 years ago
Read 2 more answers
What happens? In word 2016 when the home ribbon tab is clicked on ?
RideAnS [48]

When you clicked on the ribbon tab in word 2016, you'd be brought to the home tab, where all of the basic controls are displaced for you to see.

Hope I could help! :)

5 0
3 years ago
Read 2 more answers
Software that functions as an electronic version of a filing cabinet?
Dennis_Churaev [7]

Answer: There are a lot of choices

Explanation: do you want a database? You can obtain a terabyte or even larger size thumb drive or USB drive

Do want a print server? a networked drive specific for your data and if you have  to   print out anything

Do you want a connected drive to send all your documents to with organized folders?  any size drive will work for this they come all prices

Enter the electronic filing system, sometimes called document management software. These computerized filing systems provide electronic file management. In other words, they give us a simple way to store, organize, and retrieve digital files and digital documents and pdfs.

https://www.filecenter.com/info-electronic-filing-system.html here is some good software

5 0
2 years ago
Make these negative sentences more positive and polite. Keep the meaning.
mart [117]

Answer:

You should not run for the bus. You could slip on the ice and fall

Would you stop telling me what you can't do

Could you not eat with your mouth open

You should not submit an incomplete report

6 0
3 years ago
Read 2 more answers
Other questions:
  • How do i move an sd card from 1 phone to another phone?
    13·1 answer
  • Write the simplest statement that prints the following on a single line: 3 2 1 Go! Note: Whitespace (blank spaces / blank lines)
    11·1 answer
  • Ruth designs games for mobile operating systems such as iOS and Windows. The demand for games on mobile devices is high. Ruth’s
    8·1 answer
  • 1) Discuss when it is best to use indexes. ​
    6·1 answer
  • In a meeting, Juan hears someone say a product mix is "wide." What does
    13·1 answer
  • To insert text from a separate file into your Word document
    10·1 answer
  • Physical safeguards, also called logical safeguards, and are applied in the hardware and software of information systems.
    14·1 answer
  • Convert the following decimal number into octal number-147​
    11·1 answer
  • What's wrong with this python code i don't know what's wrong with both of them
    11·1 answer
  • Select the correct answer.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!