Question: What is the output of the given code block? number1= 60 number2 = 40 if number1 + number2 = 100: print(sum is 100) else:

What is the output of the given code block? number1= 60 number2

What is the output of the given code block? number1= 60 number2 = 40 if number1 + number2 = 100: print("sum is 100") else: print("sum is not 100") Your answer: sum is not 100 sum is 100 sum is not 100 No output sum is 100 Error

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code block you provided has a syntax error in the if statement ... View full answer

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!