- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is Python equivalent of the ! operator?
In C/C++, ! symbol is defined as not operator. Its equivalent in Python is not operator. It returns true if operand is false and vice versa
>>> not(True) False >>> not(False) True >>> not(20>30) True >>> not('abc'=='ABC') True
- Related Articles
- Is there an equivalent of C’s “?:” ternary operator in Python?
- Is the !! (not not) operator in JavaScript equivalent to reverse process of not operator?
- What is the purpose of the `//` operator in python?
- What is the associativity of Python's ** operator?
- What is function of ^ operator in Python
- What is @ operator in Python?
- What is the C++ equivalent of sprintf?
- What is operator binding in Python?
- What is tilde (~) operator in Python?
- What is modulo % operator in Python?
- What is "is not" operator in Python?
- What is correct name of * operator available in Python?
- What is the equivalent of EXCEPT in MySQL?
- What is right shift (>>) operator in Python?
- What is "not in" operator in Python?

Advertisements