Library
Exercises
Games
Exams
Resources
Forum
News
Light
Log in
Sign up
Library
Exercises
Games
Exams
Resources
Forum
News
All courses
Library
Variables, loops and conditions
if vs ==
MCQ
Which line of code is correct to test whether the variable x equals 10?
Possible answers
if x = 10:
if x == 10:
if x === 10:
if x => 10:
Log in to reply
Exercise 1 of 4
Next exercise
Report a mistake or suggest an improvement