This article is about python programming skills from afternerd
Check a python string contains another string
How to Check if a Python String Contains Another String?
View Larger Image
in
operatorfind
method
advanced stuff
- Dive deeper into string searching algorithms
- String-searching algorithm
- Rabin-Karp and Knuth-Morris-Pratt Algorithms
- CPython Github
- Boyer–Moore string-search algorithm
- Boyer-Moore-Horspool algorithm
Difference between a List and a Tuple?
Python: What is the Difference between a List and a Tuple?
The key difference between List
and Tuple
is:
list
is mutabletuple
is immutable
advanced topics
- programming language concept that you will encounter in various programming languages
- String interning
- The internals of Python string interning
- iterator
Use timeit
in Python
Python: How to use the ‘timeit’ module for multiple lines?
timeit
module is a handy python module that allows you to debug the performance bottlenecks between different ways to perform a task.
3 Ways to Copy a List in Python
3 ways to copy a list in python
Copying a python list means creating a new python object whose contents are identical.
a = b
is not copy, there’re just both refer to the same python object.
- copy by slicing:
a = b[:]
- use
list
function:a = list(b)
- use
copy
method:a = b.copy()