Тёмный
No video :(

Python string manipulation for beginners 

London App Developer
Подписаться 20 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@austinastray4444
@austinastray4444 Год назад
Solid explanation. Formatted string literals seem to be the no-brainer option here, but at least now if I see one of the older formatting methods I’ll have an idea of what I’m looking at. Thanks!
@pattytheratty
@pattytheratty Год назад
In my opinion concatenation is much more readable: print(name, age) vs print("{} {}".format(name, age))
@LondonAppDeveloper
@LondonAppDeveloper Год назад
I agree. I don't recommend using `.format()` in new code at all, but I teach it since it's possible developers will find it being used in some older/legacy codebases. I'd always recommend using formatted string literals which we teach later: `print(f"{name} - {age}")`. Your suggestion is best if you don't need to add a space in between, but in your example it would print something like "Jo25".
Далее
ALL 47 STRING METHODS IN PYTHON EXPLAINED
23:34
Просмотров 129 тыс.
Python - String Manipulation
1:00:09
Просмотров 4 тыс.
La Tierra Robó El Anillo De Saturno #planetballs
00:14
👩‍💻 Python for Beginners Tutorial
1:03:21
Просмотров 3,2 млн
25 nooby Python habits you need to ditch
9:12
Просмотров 1,7 млн
31 ESSENTIAL Python String Methods
11:20
Просмотров 82 тыс.
Learn PYTHON in 5 MINUTES
6:41
Просмотров 932 тыс.