HowTos
Free Video Tutorials
Written Tutorials
💲Udemy Courses
🛠Daily Python Projects
Python Shell
About Us
Home/
Top Python How-To Questions
Extract extension from filename.
python
filenames
file-extension
Count the occurrences of an item in a list.
python
list
count
Select an item from a list randomly.
python
list
random
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
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
Go to Top