🌟 Day51 of #100DaysOfPython 🌟

🌟 Day51 of #100DaysOfPython 🌟

Today, we're diving into 'is' & '==' in python!

The 'is' and '==' operators might seem similar at first glance, but they have distinct functionalities that can impact your code.

The '==' operator is used to check if the values of two operands are equal. It compares the values and returns True if they are equal, and False otherwise.

On the other hand, the 'is' operator checks if two variables refer to the same object in memory. It compares the memory addresses of the objects and returns True if they point to the same memory location, and False otherwise.

Let's delve into the nuances of these operators to understand their differences:

Article content


Stay tuned for more such demonstrations in python!

To view or add a comment, sign in

More articles by Surya Singh

  • 🌟 Day100 of #100DaysOfPython 🌟

    Today, we're diving into map(), filter(), & reduce() in python! map() The map() function in Python is used to apply a…

    2 Comments
  • 🌟 Day99 of #100DaysOfPython 🌟

    Today, we're diving into 'is' & '==' in python! The 'is' and '==' operators might seem similar at first glance, but…

  • 🌟 Day98 of #100DaysOfPython 🌟

    Today, we're diving into the use of .join() function for string concatenation in python! The .

  • 🌟 Day97 of #100DaysOfPython 🌟

    Today, we're continuing to dive into Object Oriented Programming in python! How do we initialise a class and create…

  • 🌟 Day96 of #100DaysOfPython 🌟

    Today, we're diving into Object Oriented Programming in python! What is a class? A class is a blueprint for creating…

  • 🌟 Day95 of #100DaysOfPython 🌟

    Today, we're diving into regex in python! Regex allows you to define search patterns for strings, making it easier to…

  • 🌟 Day94 of #100DaysOfPython 🌟

    Today, we're diving into another technique for handling missing values known as Random Sample Imputation! Random sample…

  • 🌟 Day93 of #100DaysOfPython 🌟

    Today, we're diving into Local & Global variables in python! Local variables are defined within a function or block and…

  • 🌟 Day92 of #100DaysOfPython 🌟

    Today, we're diving into the use of .join() function for string concatenation in python! The .

  • 🌟 Day91 of #100DaysOfPython 🌟

    Today, we're diving into Count/Frequency Encoding for handling categorical feature! Count or frequency encoding is a…

Insights from the community

Others also viewed

Explore topics