Python Quick Tip: F-Strings - How to Use Them and Advanced String Formatting

Python Quick Tip: F-Strings - How to Use Them and Advanced String Formatting

Corey Schafer

5 лет назад

202,051 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

M M
M M - 01.10.2023 23:50

Can you upload a link to your previous video you mentioned in the beginning of this video?

Ответить
Whitey
Whitey - 08.07.2023 22:52

first_name = "Bob"
last_name = "Duplex"
Sentence = "My name is" + first_name + last_name"

This is why I don't understand the point of formatted strings. Hopefully I'll learn the point lol

Ответить
Mustin Jiles
Mustin Jiles - 04.07.2023 22:10

Thank you so much!

Ответить
Arjun Barakoti
Arjun Barakoti - 27.05.2023 21:11

awesome , expecting more and more in python .

Ответить
Kenneth Stephani
Kenneth Stephani - 08.02.2023 17:16

Great video, Corey!

Ответить
Sergey Zolkin
Sergey Zolkin - 02.02.2023 11:06

What font do you use?

Ответить
It's OK to be white
It's OK to be white - 02.11.2022 07:07

You're killing it dude! 👍

Ответить
brt Oneal
brt Oneal - 08.09.2022 03:30

Where can I find the documentation for formatting? Thanks a lot!

Ответить
Алексей Соков
Алексей Соков - 16.07.2022 10:47

2022

Ответить
Garden of Akira
Garden of Akira - 28.06.2022 05:41

Thank you for the video. I am gratuful for your time and contribution. Kind regards, Akira.

Ответить
kychemclass
kychemclass - 16.06.2022 16:08

Thank you! :)

Ответить
Luiz Fernandes
Luiz Fernandes - 10.06.2022 05:48

Very helpful and straight forward!

Ответить
Dwayne Binns
Dwayne Binns - 18.05.2022 03:18

Corey 4really love your vids. I am new to.pyyhon and is a self thought person. I am having a hard time adding a line of values with the $ . I want to keep the $ as formatted.

Ответить
Alexandra Lidia
Alexandra Lidia - 05.04.2022 19:38

How do you comment/uncomment multiline strings?

Ответить
InspektorDreyfus
InspektorDreyfus - 01.03.2022 01:28

I uncomment out. Over.

Ответить
Thee Greatest Ever
Thee Greatest Ever - 24.12.2021 11:07

Its amazing how short but absolutely clear and excellently explained your videos are. Thank you from South Africa

Ответить
SladeFX
SladeFX - 09.12.2021 21:51

Learned a lot and the video is really well structured aswell. Thank you

Ответить
SaiGanesh
SaiGanesh - 13.11.2021 18:54

Nice info corey

Ответить
Otabek Isoqov
Otabek Isoqov - 08.11.2021 15:15

pretty good however would be better if you provide some extra examples for us to solve

Ответить
Uno Noname
Uno Noname - 03.11.2021 05:29

Does anyone know how he put comments and uncomments just one key stroke?

Ответить
Austin
Austin - 01.11.2021 04:23

This was great 👍🏻

Ответить
Shakesrear
Shakesrear - 21.10.2021 00:01

x = 8/2
y = (2 + 2)
n = 'finally I can do {} {}'.format([x*y])'
print(n)

What did I get wrong?

Ответить
Jong Cheul Kim
Jong Cheul Kim - 19.10.2021 01:53

Thank you.

Ответить
Marcos Costa
Marcos Costa - 22.09.2021 17:28

I keep getting "syntax error" when I try to run f-strings on my intel Mac mini running Pycharm, but on my M1 Macbook it works fine. Any idea why that is? Thanks

Ответить
tete ebra
tete ebra - 16.09.2021 05:02

Helpful video , easy and to the point . Thanks mate

Ответить
Menghua Jiang
Menghua Jiang - 15.09.2021 23:07

Easy to understand even as a newbie.

Ответить
JAYS
JAYS - 15.09.2021 07:50

Very helpful. Thank you

Ответить
prateek sarangi
prateek sarangi - 10.09.2021 07:30

Thanks again

Ответить
Eduardo Tavares
Eduardo Tavares - 08.08.2021 23:46

Hi! I am doing this :
cursor.execute(f'INSERT INTO vinyls VALUES({title},{artista},{isOut},{label},{vinylAudoID},{vinylCountry},{vinylFormat},{vinylID},{vinylLocation},{year})')
but I am getting an error like this : sqlite3.OperationalError: near "Missing": syntax error why? thank you

Ответить
TheVerucAssault
TheVerucAssault - 25.07.2021 18:48

This is probably the best video I have seen explaining how F strings work. Thanks.

Ответить
Tim Andrew
Tim Andrew - 15.06.2021 17:37

much helpful! thank you!

Ответить
Leo James Charles
Leo James Charles - 15.06.2021 09:43

how did you uncommon from
this:
# some code
# some code
to this:
some code
some code
can you explain ?

Ответить
Ronald Modesitt
Ronald Modesitt - 11.05.2021 03:40

Very helpful. Many thanks.

Ответить
Dylan Cooley
Dylan Cooley - 09.05.2021 05:57

You have been a God send with this python playlist! Thank you so much, man.

Ответить
Serge Naz
Serge Naz - 06.05.2021 03:11

Great lesson 👍

Ответить
Sujan Shrestha
Sujan Shrestha - 07.04.2021 15:17

how to write f string

Ответить
Deng Achol
Deng Achol - 30.03.2021 08:52

thanks

Ответить
Lucas Flores
Lucas Flores - 15.03.2021 00:05

your english is clear, your teaching skills are amazing. Thanks!

Ответить
Henrik AB
Henrik AB - 17.01.2021 21:39

Does not work on 3,8

Ответить
Andrea Lopez
Andrea Lopez - 17.01.2021 04:37

Thank you so much! You explain it so much better than my teachers.

Ответить
Gaurav Tiwari
Gaurav Tiwari - 11.01.2021 20:55

Hey Corey, nice video you have there. I had a question though(I don't know whether it concerns with this video), I needed some explanation with the dunder method __format__(). How is it used? Can you provide some examples it would be great. Thanks for this video.

Ответить
Francesco
Francesco - 11.01.2021 00:50

Legend!!! Thank you. How do you comment and uncomment out using #?

Ответить
CnX
CnX - 20.12.2020 17:23

nice :)

Ответить
Steve
Steve - 16.11.2020 06:46

great video!

Ответить