Difference between = and ==

sir am i correct that = is used to assign the value whereas == is used for comparison

Hi Siddhant, you are absolutely correct.