Top Python Interview Questions And Answers What is Python? Python is a high-level Paul Arriola USA Jersey , interpreted, dynamic, interactive and object-oriented scripting language. Python is intended to be highly readable. It uses English keywords frequently where as alternative languages use punctuation Omar Gonzalez USA Jersey , and it's fewer syntactic constructions than alternative languages. What is the aim of PYTHONPATH setting variable? PYTHONPATH 鈭?it's a job almost like PATH. This variable tells the Python interpreter wherever to find the module files foreign into a program. It ought to include the Python source library directory and the directories containing Python source code. PYTHONPATH is usually planned by the Python Training in Bangalore Python installer. What area unit the supported information varieties in Python? Python has 5 commonplace information varieties 鈥?Numbers 鈥?String 鈥?List 鈥?Tuple 鈥?Dictionary How is memory managed in Python? 1. Python memory is managed by Python private heap area. All Python objects and information structures are situated in a private heap. The software engineer doesn't have an access to the current private heap and interpreter takes care of this Python private heap. 2. The allocation of Python heap space for Python objects is completed by Python memory manager. The core API offers access to some tools for the software engineer to code. 3. Python even have an inbuilt garbage collector that recycle all the unused memory and frees the memory and makes it on the market to the heap space. Whenever Python exits, why isn鈥檛 all the memory de-allocated? Whenever Python exits, particularly those Python modules that area unit having circular references to alternative objects or the objects that are documented from the worldwide namespaces aren't invariably de-allocated or freed. It is not possible to de-allocate those parts of memory that are reserved by the C library. What is dictionary in Python? The built-in data types in Python is termed dictionary. It defines one-to-one relationship between keys and values. Dictionaries contain combine of keys and their corresponding values. Dictionaries are indexed by keys. What are negative indexes and why are they used? The sequences in Python are indexed and it consists of the positive furthermore as negative numbers. The numbers that are positive uses 鈥?鈥?that's uses as 1st index and 鈥?鈥?because the second index and therefore the method goes on like that. The index for the negative range starts from 鈥?1鈥?that represents the last index within the sequence and 鈥?2鈥?because the penultimate index and therefore the sequence carries forward just like the positive range. The negative index is employed to get rid of any new-line spaces from the string and permit the string to except the last character that's given as S[:-1]. The negative index is additionally wont to show the index to represent the string in correct order. What is the distinction between vary & xrange? For the foremost half Nick Lima USA Jersey , xrange and vary are the precise same in terms of practicality. They e ax 270 Kids[/url]