Hattie uses the line of code num == 7 to assign the number 7 to the variable named num. What correction should be made?

(1 point)

• change 7 to seven

• change num to Num

• change == to — I

• change == to =

1 answer

The correct correction to be made is:

• change == to =

In programming, == is used for comparison (to check if two values are equal), while = is used for assignment (to assign a value to a variable).