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
SashulF [63]
3 years ago
9

Use python

Computers and Technology
1 answer:
Degger [83]3 years ago
3 0

Answer:

def rec_dig_sum( num ):

   num_list = [ digit for digit in str(num)]

   total = 0

   for x in num_list:

       total += x

   return total

def dict_of_rec_dig_sums(low, high):

   mydict = dict()

   for number in the range(low, high+1):

      mydict[rec_dig_sum(number)] = number

   return mydict

Explanation:

The python program defines two functions, "rec_dig_sum" and "dict_of_rec_dig_sums". The former accepts a number and returns the sum of the digits of the number while the latter accepts a low and high number range.

The program returns a dictionary with the recursive sum as the keys and the number count as the values.

You might be interested in
If you do not want the border style to carry forward each time the enter key is pressed, you need to ____.
ANEK [815]
Hello <span>Endermss2118 </span>

Answer: If you do not want the border style to carry forward each time the enter key is pressed, you need to Clear formatting


Hope This Helps
-Chris
8 0
3 years ago
Importance of project risk management
kkurt [141]
You must spread your risks out like don’t put all your eggs in one basket... don’t rely on on thing because is it goes downhill you have no backup
5 0
4 years ago
3n - 12 = 5n - 2<br> how many solutions?
Luda [366]
N=-5 sry about the other guy stealing
6 0
3 years ago
Greg is the purchasing manager at a jeans-manufacturing company. He knows he could save his company money by using cheaper, thin
pychu [463]

Answer:

Option (B) i.e., character is the correct answer to the following question.

Explanation:

Because the character quality demonstrates the ability of honesty, loyalty, and integrity, etc that shows the positive character of the person and Greg has good character quality because he thinks about their customers before he thinks about the money. So, that's why Greg shows the quality of the good character and he also loyal about their work.

8 0
3 years ago
I WILL GIVE YOU BRAINIEST IF YOU GIVE A GOOD ANSWER
Elodia [21]

Answer:

5 Ways to Practice Green Computing

Buy "Energy Star" labeled monitors, desktops, laptops, and printers . ...

Put laptops in "sleep" mode when not in use. ...

Even better, turn OFF computers and other equipment when not in use. ...

E-cycle used computer equipment. ...

Buy the new "Smart Strip" power strip.

Explanation:

3 0
3 years ago
Other questions:
  • What is the correct order of network types when categorized by their size or the physical area they cover, from largest to small
    5·1 answer
  • Why might your coworker suggest encrypting an archive file before e-mailing it??
    8·1 answer
  • Edhesive coding practice 3.4​
    12·1 answer
  • Five batch jobs. A through E, arrive at a computer center at almost the same time. They hav e estimated running times of 10, 6,
    14·1 answer
  • Katarina is deciding whether to buy a desktop or a laptop computer. What will most likely help Katarina make her decision?
    10·2 answers
  • In the ______ algorithm, the disk arm starts at one end of the disk and moves toward the other end, servicing requests till the
    11·1 answer
  • Identify the problems that computer program bugs can cause. Check all that apply.
    9·2 answers
  • Hamilton is the best
    12·1 answer
  • What is operating system​
    10·2 answers
  • Martha pays $3,335 every month for her house payment. She has made 86 payments up till now. How much has Martha paid for her hou
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!