Python Programming, Equality Operator ==

Опубликовано: 19 Март 2021
на канале: Quick Programming Concepts
1,121
30

#shorts

This quick video demonstrates the equality operator in Python. This video is intended for those who are new to Python or new to programming in general.

The equality operator in Python is two equal signs together ==. It can be used to check if two values are equal to each other. When combined with an if statement in Python, this can be used to make decisions in your program to run certain code when specific values are equal to each other.

Example:
if 'Value 1' == 'Value 2':
print('Value 1 is equal to Value 2')