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
jeka94
3 years ago
9

Write a function reverse() that accepts a nonnegative integer argument n and returns the integer that has the reverse decimal re

presentation. For example, the reverse of 12 is 21, and the reverse of both 21 and 210 is 12. Your function should also be placed in decimal.py

Computers and Technology
1 answer:
Anna35 [415]3 years ago
3 0

Answer:

the code is attached.

Explanation:

  1. First check the parameter and if it is negative, print "please enter a nonnegative integer"
  2. then using str(), convert the parameter into string
  3. using slice operation [::-1] reverse the string
  4. return it as an integer using int()

You might be interested in
_____ describes the layout of the screen. Block-based, Interface, Editor, Player
astra-53 [7]
The answer is interface
6 0
3 years ago
Read 2 more answers
Your computer will organize files into
ArbitrLikvidat [17]

Answer: In alphabetical or  it can be also arranged by file size, last updated and when created.

Explanation:

8 0
3 years ago
Read 2 more answers
Which of the following is the best definition of a computer code? a secret language a mathematical language a language that comp
Fudgin [204]

Answer:

a language that computers use

Explanation:

Coding can come in many different forms but it is all used on the computer and then translated.

6 0
3 years ago
Read 2 more answers
What should be used to clean LCD monitors? Liquid window cleaner Ammonia wipes Windshield washer liquid Antistatic monitor wipes
lbvjy [14]
Ammonia Wipes is the answer glad i could help :)
7 0
3 years ago
Does anyone know this ? this website is scratch btw.
Katarina [22]

Answer:

maybe select an instrument

7 0
4 years ago
Other questions:
  • What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -=
    15·1 answer
  • From the video "Your Password Sucks", using computer power to guess your password by trying multiple variations one after the ot
    15·2 answers
  • What action makes RAM on your computer disappear?
    12·2 answers
  • When you right-click certain areas of the Word or other Office app windows, a command menu will appear. Group of answer choices
    13·1 answer
  • Write a function to output an array of ints on a single line. Funtion Should take an array and an array length and return a void
    9·1 answer
  • After fixing the format of her subheadings, she notices that she misspelled the name of one of the famous people
    7·2 answers
  • What malware looks like a useful or desired executable program but is, in reality, a program that is supposed to cause harm to y
    11·1 answer
  • Stephanie would like to know the average number of regular hours worked by her employees. In cell B11, create a formula using th
    8·1 answer
  • How do u delete a post on brainly
    7·1 answer
  • Jobs that use math and science to solve problems involving the design and development of technologies can be found in the what c
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!