Finding substrings in Python

  Рет қаралды 3,923

Python and Pandas with Reuven Lerner

Python and Pandas with Reuven Lerner

Күн бұрын

Rivka, who reads my "Better developers" newsletter (BetterDevelope..., asked me about finding parallel substrings. I answer the question here, using strings, loops, slices, and (huzzah!) a list comprehension. Questions about Python? Send them to me on Twitter at @reuvenmlerner ( / reuvenmlerner ) or via e-mail to reuven@lerner.co.il.

Пікірлер: 7
@siddharthsingh6561
@siddharthsingh6561 5 ай бұрын
ur incredible!
@ReuvenLerner
@ReuvenLerner 5 ай бұрын
Thanks so much!
@Cloudxxx23
@Cloudxxx23 8 ай бұрын
6:30 What does +=1 can do?
@ReuvenLerner
@ReuvenLerner 8 ай бұрын
when you say x += 1, you're really saying x = x + 1. Meaning: Take the current value of x, add 1 to it, and assign the result back to the variable x. You can do this with any variable that contains an integer.
@zaqaek
@zaqaek 3 жыл бұрын
5:47 print (f'{index=}') ?
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
Yes, it's a new feature in Python 3.8's f-strings, and I really love it. If you say x = 10 print(f'{x=}') Then Python will print x=10 Meaning: variable name, equals sign, and value. When you're debugging, it's fantastic.
@zaqaek
@zaqaek 3 жыл бұрын
@@ReuvenLerner wow! thanks. I was using version 3.7. time to upgrade :)
Can you invoke methods without naming a specific Python object?
7:55
Python and Pandas with Reuven Lerner
Рет қаралды 734
Understanding "with" and Python's context managers
14:00
Python and Pandas with Reuven Lerner
Рет қаралды 958
Modus males sekolah
00:14
fitrop
Рет қаралды 16 МЛН
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 93 М.
Method chaining in Pandas
18:17
Python and Pandas with Reuven Lerner
Рет қаралды 2 М.
What Pandas users should know about NumPy 2.0 and dtypes
12:08
Python and Pandas with Reuven Lerner
Рет қаралды 1,2 М.
Advanced unpacking in Python "for" loops
6:55
Python and Pandas with Reuven Lerner
Рет қаралды 1,3 М.
Immutable vs. hashable: What's the difference?
13:10
Python and Pandas with Reuven Lerner
Рет қаралды 293
*args and **kwargs - what are they, and how are they different?
10:42
Python and Pandas with Reuven Lerner
Рет қаралды 1,4 М.
Five mistakes companies make teaching Python to their staff
8:45
Python and Pandas with Reuven Lerner
Рет қаралды 735
Sorting a mix of letters and numbers in Python
9:49
Python and Pandas with Reuven Lerner
Рет қаралды 757
Improve your career with Python + data: Announcing PythonDAB cohort 4
4:19
Python and Pandas with Reuven Lerner
Рет қаралды 10 М.
Boolean indexing in Pandas made simple
8:23
Python and Pandas with Reuven Lerner
Рет қаралды 1,9 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 16 МЛН