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 polyatomic ions form?
What is the square root of 36 over 49
What is the unit rate of the ratio 16:14
A quadrilateral is circumscribed about a circle. The measurements of the angles are 80,90,96,94. What are the measurements of four no intersecting arcs based o
what is -h+4 = -h+9????
Solve the inequality m + 12 > 17
Ms. Pacheco, Mr Edwards, and Mr Richards are three math teachers at turner middle school. Ms. Pacheco is three years older than Mr. Richards. Mr. Edwards is twi
Jackie made 28$ babysitting last week . her brother John made only 86% as much as she did. How much did john make
To get an A in a course, you must have an average of at least 90% on four tests worth 100 points each. Your scores on the first three tests were 89, 92, and 81.
What is the unit rate of the ratio 16:14