Top Python Interview Questions:

Techapex
1 min readApr 9, 2024

Posted by

(1) What are Keywords in Python:

  • 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:

Can only have two values :

  • True
  • False

(5) What is Special Literal:

python has one special literal: None

Used to specify the field that has not been created.

(6) What is a Dictionary in Python? Also, create a dictionary where the key is “Trust_name: and there are 4 fruit names associated with it.

Read Full Artilce 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