Question: What is wrong with the following code snippet: num 1 = 1 0 num 2 = 2 0 num 3 = 3 0 total =

What is wrong with the following code snippet:
num1=10
num 2=20
num 3=30
total = Num1+ Num2+ Num3
The numbers should be 10.0,20.0 and 30.0
Nothing, the variable total will be the sum of the three numbers
Python is case sensitive so Num1, Num2, and Num3 are undefined
total must be initialized to zero first
What is wrong with the following code snippet:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!