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
lubasha [3.4K]
3 years ago
13

3) Prompt the user for a 3-digit number, and the output should be the magical #, which is formed with each digit shifted to the

left by one place. For example, if the user enters 512, the outputshould be 125. this is in python
Computers and Technology
1 answer:
hammer [34]3 years ago
5 0

num = int(input("Enter a 3-digit number: "))

first = num//100

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

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

new_num = second*100 + third*10 + first

print(new_num)

I hope this helps!

You might be interested in
______ is a slow process that takes place in nature. (2 points)
netineya [11]

Natural Selection.


♣Amaranthine
6 0
3 years ago
The __________ web site and list site seclists.org is home to the leading free network exploration tool, nmap.
maksim [4K]
The nmap.org website

Nmap is an open source utility for security auditing and network discovery. Many network admins also use it for networks inventory and monitoring host or service uptime. It uses raw IP packets in novel ways to determine what hosts are available on the network.


8 0
3 years ago
Read 2 more answers
A key benefit of inheritance is Group of answer choices an object can have several types, it is type compatible with any of its
NARA [144]

Answer:

A key benefit of inheritance is: an object can have several types, it is type compatible with any of its super classes

Explanation:

  • Inheritance is one of the fundamental concepts of Object Oriented Programming.
  • Inheritance allows classes (derived classes) to inherit the methods and properties of a class (base class).
  • The class or classes that inherits the characteristics from another class is called a derived class, child class or sub class. Derived class can also has it own methods and attributes additionally.
  • The class whose methods and properties are inherited by the derived class or classes is called a base class, super class or a parent class.
  • Benefit of inheritance is that inheritance new objects can take properties of existing objects and an object can have many types.
  • Also a child class can inherit from more than one super classes which is called multiple inheritance.
  • Multiple inheritance allows a class to implement more than one abstract classes.
  • An object can have several types. These types can be of an object's own class and also other types which include all classes that a class inherits.
  • If a variable is declared to be the type of super class then value of that variable can refer to any instance that instantiated from any class that inherits that super class. This means that an object is type compatible with an of its super classes.
8 0
3 years ago
Ternary operators of computer<br><br>please explain. ​
Nitella [24]

Answer:

It's a compact way of doing an if-else statement.

General Format is

<<em>condition</em>> ? <if condition is true> : <else>;

Example:

I could rewrite:

  if(a==1) temp = 1;

  else     temp = 999;

as

  temp = (a==1) ? 1 : 999;

5 0
3 years ago
What is tahe difference between a cone and a prism
Natalka [10]

prism is (geometry) a polyhedron with parallel ends of the same size and shape, the other faces being parallelogram-shaped sides while cone is (label) a surface of revolution formed by rotating a segment of a line around another line that intersects the first line.

4 0
2 years ago
Other questions:
  • We need ____ pointers to build a linked list.
    6·1 answer
  • Identify actions to take when establishing a business. Check all of the boxes that apply.
    6·2 answers
  • A ________ is a gateway service that permits users to log in once, with one specific user ID and password, to gain access to mul
    8·1 answer
  • Decision making at the executive or strategic level requires business intelligence and knowledge to support the uncertainty and
    12·1 answer
  • Authentication is a mechanism whereby unverified entities or supplicants who seek access to a resource provide a label by which
    12·1 answer
  • 7.2.6: First Character CodeHS
    9·2 answers
  • Does anyone know how I can "guest browsing" when it's blocked ?
    7·1 answer
  • PLEASE HELP!!!
    11·1 answer
  • Comment if u wanna text me on behance
    6·1 answer
  • How to work a computer cause i don't know how to
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!