You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Python_Programming_Quiz.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -372,3 +372,18 @@ print(cap_count)
372
372
for word in
373
373
```
374
374
375
+
#### 21. If you installed a module with pip but it doesn’t import in your IDLE, what could it possibly be?
376
+
377
+
#### 22. If while installing a package with pip, you get the error No matching installation found, what can you do?
378
+
379
+
#### 23. What is the difference between a Python module and a Python library?
380
+
381
+
#### 24. Explain memory management in Python. (Optional: for CS Students)
382
+
Python manages objects by using __reference counting__. <br>
383
+
This means that the memory manager keeps track of the number of references to each object in the program.<br>
384
+
When an object's reference count drops to __zero__, which means the object is no longer being used, __the garbage collector (part of the memory manager) automatically frees the memory from that particular object.__
385
+
386
+
The user need not to worry about memory management as __the process of allocation and de-allocation of memory is fully automatic__. The reclaimed memory can be used by other objects.
0 commit comments