Top Python Interview Questions:

Techapex
May 14, 2024
  • Python keywords are special reversed Words
  • Convey a special meaning to the compiler/ Interpreter.
  • Each keyword has a special meaning and a specific operation.
  • NEVER use it as a variable.

TrueFalseNoneandasassetdefclasscontinuebreakelsefinallyelifdefexceptglobalforiffromimportraisetryorreturnpassmonlocalinnotisnonlocal

(2) What are Literals in Python?

Literals are the constants used in Python.

Sl.NoValue1String Literals2Numeric Literals3Boolean Literals4Special Literals

(3) What are Numerical Literals:

WIntLongFloatComplex+ve and -veUnlimited IntegerReal numberIn the form ofNumbers(Integers With
No Fraction apart
Ex.100,234
Size followed by
upper or lowercase L.
Ex:2342435428With both integer and fractional part
Ex-2133a+bj,”a” forms the real part & b forms the imaginary part.
Ex-314

(4) What are Boolean Literals:

Read Full Article at : https://delightbooks.com/top-python-interview-questions/

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response