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

What is wrong with this line of python code

Computers and Technology
1 answer:
Annette [7]3 years ago
3 0

Answer:

Explanation:

Statement is correct . It will prompt one to enter an number in string format .

The number entered is converted into an integer

You might be interested in
How is steering different from turning ? Need help //:
kotykmax [81]

Turning you go make a turn steering is where you keep yourself on the road.

6 0
3 years ago
In order to communicate between devices inside a computer?
labwork [276]
Seems to be a CPU, central processing unit

Handles transactions between on-board memory, as well as I/O (input/output) devices.
4 0
3 years ago
Norman Bates has a very unusual hobby what is it?
Allushta [10]

Answer:

<h3>Norman only likes to stuff birds, not other animals.</h3>
8 0
4 years ago
Gennie has just gotten her first smartphone with a touch screen. Mia is giving her a lesson on how to use the touch screen.
Helga [31]

Answer: D Stretch

Explanation:

Stretching is the process of changing the screen resolution of a phone or computer monitor so as to give a better view of it.

6 0
3 years ago
Write a program that prompts the user to enter a fraction in the following format (x/y). You may assume that the user will input
qaws [65]

Answer:

fraction = input("enter fraction x/y: ")

if len(fraction) == 3:

   if fraction[1] == "/":

       try:

           num = int(fraction[0])

           den = int(fraction[2])

           if num < den:

               print(f"{num}/{den} is a proper fraction")

           else:

               if num% den == 0

                   print(f"{num}/{den} is an improper fraction and can be reduced to {num/den}")

               else:

                   print(f"{num}/{den} is an improper fraction and can be reduced to {num//den} + {num - (den * (num//den))}/{den}")

       except ValueError:

           print("numerator and denominator must be integer numbers")

Explanation:

The try and except statement of the python program is used to catch value error of the input fraction of values that are not number digits. The program converts the numerator and denominator string values to integers and checks for the larger value of both.

The program prints the fraction as a proper fraction if the numerator is lesser and improper if not.

5 0
3 years ago
Other questions:
  • ___________ is a mass-produced, copyrighted software that meets the needs of a wide variety of users, not just a single user or
    15·1 answer
  • What machine is considered by many to be the first all-programmable electronic digital computer?
    15·1 answer
  • What commands will reset a network interface in Linux?
    13·1 answer
  • In which section of a document would you include image acknowledgments for the images used ?
    8·2 answers
  • A technician is troubleshooting an employee laptop that has a wired network connectivity issue. The laptop can connect to the in
    9·2 answers
  • A 1400 kilogram car is moving at a speed of 25 m/s. How much kinetic energy does the car have?
    15·2 answers
  • Pascal system . write the program that will calculate the perimeter of a rectangle if its area is A (m²) and one of its sides ha
    6·1 answer
  • Becca is working on a program that will store data. The program will need quick access to data and data persistence is not impor
    15·1 answer
  • Javier downloads an illustration from an online Image library and modifies it for his purposes. The illustration he downloads is
    12·1 answer
  • Write 10 sentences of your own and underline the verb.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!