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
sweet-ann [11.9K]
3 years ago
9

Python exercise grade 10

Computers and Technology
1 answer:
Marysya12 [62]3 years ago
3 0

while True:

   num = int(input("Enter a number: "))

   if num == 0:

       break

   first = num // 100

   second = (num // 10) - (first * 10)

   third = (num - (first * 100)) - (second * 10)

   reversed_digit = (third * 100) + (second * 10) + first

   if 9 < num < 100:

       reversed_digit = reversed_digit // 10

   elif num < 10:

       reversed_digit = reversed_digit//100

   print("The reversed digit is:",reversed_digit)

I wrote my code in python 3.8. I hope this helps.

You might be interested in
What are paragraphs separated by
Lemur [1.5K]

Paragraphs are usually separated by blank space.

Hope this is what you were looking for :)

6 0
3 years ago
A custom information feel that helps users find a specific document is called
vichka [17]
A custom information feel that "HELPS USERS FIND A SPECIFIC DOCUMENT"... is what I got out of that sentence.

ANSWER: Search Box?
8 0
3 years ago
What would the output be of print(3 ** 2)
trapecia [35]
-3–2 I think orange brown green green orange green brown orange brown
4 0
3 years ago
How do you autofit a column to fit the longest word in Microsoft Word?
sergey [27]

Adjust the table size, column width, or row height manually or automatically. You can change the size of multiple columns or rows and modify the space between cells. If you need to add a table to your Word document.

i hope its right!!!!


5 0
4 years ago
Read 2 more answers
What is computer hadware​
Alex Ar [27]

Answer: like the monitor or the keyboard

Explanation: it is true i even looked it up and it was true

8 0
2 years ago
Other questions:
  •  When using cost-benefit analysis to determine the benefits of a community project, economists measure the value in terms of (A.
    14·1 answer
  • how can people access to a range of online services affect their ability to operate safely in the digital world
    11·1 answer
  • What can I do with this? Lol
    15·1 answer
  • Some drugs, like Tylenol, are available over the counter because they are safe in any dose.
    8·1 answer
  • An additional factor in how an element is rendered is that properties are passed from a parent element to its children in a proc
    15·1 answer
  • (1) Prompt the user to enter four numbers, each corresponding to a person's weight in pounds. Store all weights in a list. Outpu
    7·1 answer
  • The Bellman-Ford algorithm for the shortest path problem with negative edge weights will report that there exists a negative cyc
    13·1 answer
  • All languages require the code which is simply a word that means _____.
    9·1 answer
  • Can development and conservation of environment go hand-in-hand? Explain your point of view
    8·1 answer
  • What’s the difference between var and val?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!