Answers for "!python"

11

!python

#The (!) is the not operator in Python, (!=) means not equal to.
if 2!=10:
  print("2 isn't equal to 10.")
elif 2=10:
  print("2 is equal to 10.")
#Prints "2 isn't equal to 10." as 2 isn't equal to 10. Is it?
Posted by: Guest on September-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language