In java we have garbage collection and that took care of the alloted memory. What is the scenario with Python?
The answer here is no. The modules with circular references to other objects, or to objects referenced from global namespaces, aren’t always freed on exiting Python.
Plus, it is impossible to de-allocate portions of memory reserved by the C library.
A scripting language is a programming language ...READ MORE
Slicing is basically extracting particular set of ...READ MORE
can you give an example? READ MORE
You can use
This will create a 4 ...READ MORE
suppose you have a string with a ...READ MORE
if you google it you can find. ...READ MORE
suppose you have a list
a = [0,1,2,3,4,5,6,7,8,9,10]
now ...READ MORE
can you give an example using a ...READ MORE
This is the way "continue" statement works!
You ...READ MORE
if x == 'a':
# Do the ...READ MORE