Top Python Interview Questions

Aarusha mrdinfonet1 at gmail.com
Fri May 26 01:03:13 EDT 2017


PYTHON INTERVIEW QUESTIONS

Mindmajix has compiled Python Interview questions which would benefit the learners to attend the Python interviews.

Q. How is Python executed?

Python files are compiled to bytecode. which is then executed by the host.
Alternate Answer:
Type python <sourcefile>.pv at the command line.

Q. What is the difference between .py and .pyc files?

.py files are Python source files. .pyc files are the compiled bvtecode files that is generated by the Python compiler

Q. How do you invoke the Python interpreter for interactive use?

python or pythonx.y where x.y are the version of the Python interpreter desired.

Checkout more here! https://mindmajix.com/python-interview-questions



More information about the Python-list mailing list