Thursday, March 31, 2022

Day - 6 Python (keywords & Operator)

(Keywords are special reserved words)

TrueFalseNoneandas
assetdefclasscontinuebreak
elsefinallyelifdelexcept
globalforiffromimport
raisetryorreturnpass
nonlocalinnotislambda

Python Operator
  • Arithmetic (+,-,*, %(remainder), ** exponent, // floor )
  • Comparison Operator (==, != , <= , <=,>,<
  • Assignment Operator ( =, +=,-=, *= , %=, **= (power) ,//= (floor)
  • Logical Operators  (and , or, not )
  • Bitwise Operator ( & (and) , |  (or) ,^ (xor), ~ (nor) , << (left Shift) , << (right shift)
  • Membership Operator (in, not in )
  • Identity Operator ( is, is not)

No comments:

Post a Comment