Suppose you want to test for a variable score if its value is equal to 100 and you write this statement in Python: if score = 100: print("Score is 100) Explain what is a potential problem in the statement shown above?

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 4RQ: If the following code segment compiles correctly, what do you know about the variable x? if(x)...
icon
Related questions
Question

Suppose you want to test for a variable score if its value is equal to 100 and you write this statement in Python:

if score = 100:

   print("Score is 100)

 

Explain what is a potential problem in the statement shown above?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,