Computer Science, asked by hariom3221, 4 months ago

Which statement will check if a is equal to b?
if a = b:
if a == b:
if a === c:
if a == b in​

Answers

Answered by chordiyaprital
1
If a=b:
This is the answer for it
Answered by qwstoke
1

if a == b: is the correct answer

  • In computers we use the == symbol to check whether two values are equal
  • The = symbol is used to assign a variable to a value or any other variable
  • When we have the if statement we end it with a colon mark :
  • The colon mark helps in the indentation of the code. Indentation means shifting the code one space away from the margin.
  • === is never used in any code
  • Hence, if a == b: is the correct answer

#SPJ3

Similar questions