3/1/2023 0 Comments Python not equal![]() ![]() What is = in python? ‘=’ is an operator which is used to compare the equality of 2 objects in Python. The phrase “Practice Makes Perfect” did not survive so many centuries for no reason!įor those of you who came here just to refresh your memories, here is a cheatsheet! Python’s “=” Operator CheatSheet What is “=” in Python? Equality Comparison Operator How to read “=”? “is equal to” or “equal to” Use of “=” operator To check if 2 objects are equal in terms of value “=” vs “=” “=” is for comparison while “=” is for equality How to read the code “x = y” is x equal to y? Table#1: Python’s “=” operator Cheatsheet ![]() So put on your coding hats, open your laptops and start experimenting and playing with the code shown in the examples as you read them! The best trick to make our brains remember stuff is via active learning. Python is no exception to this rule!Įven though the concepts might look simple, our brains are really good at understanding the concepts but not so good at remembering them! The first step in the journey towards mastery of any programming language is to learn about the various operators provided by that language and learn how to wield them. In this article let us learn about the “=” operator in python and learn how to make use of this operator the same way the pros do! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |