Answer to Question #130914 in Python for Dean

Question #130914

The following code should take a number as input, multiply it by 8, and print the result. In line 2 of the code below, the * symbol represents multiplication.


Fix the errors so that the code works correctly:


input ("Enter a number: ")

print (num * 8)

The code above is pre-populated in your code editor.


1
Expert's answer
2020-08-28T08:03:02-0400
num = int(input("Input a number: "))
print (num * 8)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS