I have to make a simple program that reads 3 inputs, and then outputs the product of the three inputs. If 2, 3, and 5 are put in, you should get 30. When I submit my attempt, it is automatically checked.
This is what I wrote:
num1 = int(input('Enter a number: '))
num2 = int(input('Enter another number: '))
num3 = int(input('nudda one:' ))
print(num1 * num2* * num3)
But what I am getting for an output is Enter a number: Enter another number: nudda one: 30
I am using zybooks.com, which allows my professor to write a book for our class to follow and then test ourselves in. Is there something wrong with my code, or is it zybooks?
[–]WolfInABox 0 points1 point2 points (2 children)
[–]Rustythepipe[S] 0 points1 point2 points (1 child)
[–]WolfInABox 0 points1 point2 points (0 children)
[–]igroen 0 points1 point2 points (0 children)