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

Please answer this problem?
HELP QUICK WILL MARK THE MOST BRAINLIEST PLEEAAASSSEEE
Prices become higher when a unique and highly desirable item is auctioned because the
If the product of the integers a, b, and c is 1, then what is the difference between the largest and the smallest possible values of [tex] a^{2} * b^{3} *
Fill in the blank in geometry you'll often be able to use deductive rules to
Which expression is equal to csc x, written in termsof cos x ?
What is the meaning of an modern song (song in the last year)
More points!! Answer B C and D
What was produced during the Miller-Urey experiment?
How do you see religion fitting in to society? How do differing religions either support or compete against each other? Do you think you need to be religious to