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 module is a file containing a ...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
You can also use the random library's ...READ MORE
colors = ['red', 'green', ...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
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.