HowTos
Free Video Tutorials
Written Tutorials
💲Python Courses
🛠Daily Python Projects
Python Shell
About Us
Home/
Top Python How-To Questions
Count the occurrences of an item in a list.
python
list
count
Select an item from a list randomly.
python
list
random
Get the last element of a list.
python
list-indexing
Sort a dictionary by value.
python
dictionary
sorting
Iterate over dictionaries using for loops.
python
dictionary
iterating
Find the index of an item in a list.
python
list
indexing
Understand how slice notation works.
python
slice
list
iterable
Extract items from two different lists into one list.
python
zip
lists
extract item
merge lists
Randomly select an item from a list.
python
list
random
Get the last item of a list.
python
list
last item
Top Python What Questions
Working with Word documents with Python using DOCX library
python
word doc
What is the meaning of single and double underscore before an object name?
python
double-underscore
single-underscore
How to add an existing venv virtual environment in PyCharm
venv
pycharm
Why is reading lines from stdin much slower in C++ than Python?
python
readlines
c++
What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
parameter-passing
python syntax
argument-unpacking
variadic-functions
Python Classes and OOP Explained
oop
object oriented programming
classes
What does "yield" do in a Python function?
python
yield
generator
What is if __name__ == "__main__" in Python?
python
__main__
__name__==
Go to Top