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.
num = int(input("Input a number: "))
print (num * 8)
Comments
Leave a comment