Posts

Showing posts from August, 2020

Frequently asked Python Interview Questions

1. What type of a language is python? Interpreted or Compiled? Python  is an interpreted, interactive, object­ oriented programming language.Python is an interpreted language, as opposed to a compiled one, though the distinction can be blurry because of the presence of the bytecode compiler. This means that source files can be run directly without explicitly creating an executable which is then run. 2. What do you mean by python being an “interpreted language”? An interpreted languageis a programming language for which most of its implementations execute instructions directly, without previously compiling a program into machine­languageinstructions. In context of Python, it means that Python program runs directly from the source code. 3. What is python’s standard way of identifying a block of code? Please provide an example implementation of a function called “my_func” that returns the square of a given variable “x”. (Continues from previous question) Indentation. def...