devondenham12 devondenham12
  • 09-11-2017
  • Computers and Technology
contestada

can some one fix this
input ("Enter a number: ")
print (num * 8)

Respuesta :

Zepdrix
Zepdrix Zepdrix
  • 09-11-2017
If you save the input as num,
this will print the input 8 times.

num = input("Enter a number: ")
print(num * 8)

If you want to do actual math calculations,
then the input needs to be a number.

num = float(input("Enter a number: "))
print(num * 8)

This doesn't account for any errors in which the user doesn't input a number, but I don't think that's what you were looking for anyway :)
Answer Link

Otras preguntas

How do you do this I don’t understand
Solve the following inequality. Show your work. 2m + 6 > 7(m – 2)
I need help with my answer which sphere of the earth consists of oceans, lakes, snow, glaciers
The cost of a new smart watch at Walmart is $250.49. The same watch was on sale last week for $199.99. What is the difference of the two prices?
why is go make up a part of day of the dead
8x + 4y = 16 7y = 15 - x
The original Ferris wheel, designed by George Ferris in 1892 for the World’s Columbian Exposition in Chicago, had a radius of 125 feet. What was the circumferen
Students did an experiment comparing the activity of four different enzymes, A, B, C, and D. The results are represented in the graph below. A valid conclusion
How many times does ur heat beat
what are some facts about the Roanoke ,pls help just need help​