Тёмный

Pico W Episode 17: Formatting Output in MicroPython 

Lori Pfahler
Подписаться 892
Просмотров 661
50% 1

In this episode, I cover three ways to format output in MicroPython: String Modulo Operator, format() method and f-Strings.
Code
string modulo operator demo:
github.com/lpfahler/Pico_Proj...
format() demo:
github.com/lpfahler/Pico_Proj...
f-string demo:
github.com/lpfahler/Pico_Proj...
Onboard Temperature Sensor Pico:
github.com/lpfahler/Pico_Proj...
Music: "Twilight" by Waesto
Watch: • Waesto - Twilight (Off...
Download: hypeddit.com/waesto/twilight
Music provided by Vlog No Copyright Music.
#pico #micropython #fstrings

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

 

5 июн 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@SteveTempleton-yh9oz
@SteveTempleton-yh9oz 10 месяцев назад
Thanks Lori. Not sure how I stumbled across your channel, but I have binge-watched your playlist on the pico ever since. Love ya work “Kid”. Keep it up!!!!!
@lorisrobots
@lorisrobots 10 месяцев назад
This 'kid' is retired so I am traveling a bunch these last few weeks. I will be home in a few weeks and will start making more - please stay tuned! Thanks for the feedback and for watching!
@keithlohmeyer
@keithlohmeyer Год назад
Quite the deep dive and great presentation. Thanks for the video.
@lorisrobots
@lorisrobots Год назад
I needed to get it all straight in my head! Making a video always works for me. Thanks for watching!
@jyvben1520
@jyvben1520 Год назад
nice overview, prefer f-strings , seems the easiest to remember, hadn't seen that formatting in it, great stuff.
@lorisrobots
@lorisrobots Год назад
Yes f-strings are the preferred approach. Thanks for watching!
@charlotteswift
@charlotteswift Год назад
Very good, Lori. I've been trying to get people interested in f-strings rather than the other 2 options for a while. I was going to do a video on them when I eventually get round to making my 'Things I used to know about Python' playlist which will be primarily to remind myself how to do things without having to trawl through the internet and my old programs. My memory is appalling😿😿I don't need to bother now!!
@lorisrobots
@lorisrobots Год назад
Thanks for watching Charlotte!
@richards7909
@richards7909 Год назад
Thanks for this. The explanations and examples are great :)
@lorisrobots
@lorisrobots Год назад
Thanks for watching Richard!
@Wythaneye
@Wythaneye Год назад
Fantastic video! Thanks for sharing.
@lorisrobots
@lorisrobots Год назад
Thanks for watching!
@TheTechRancher
@TheTechRancher 11 месяцев назад
Very good job giving us a good understanding of the different types of string formating. I have done a lot of testing with the end=' ' with the potentiometer and because we are appending to the end of the string it will give false readings. But when I adjust for this in my math I can correct for this. Example would be my linear equation Slope Intercept Form formula seems to always read correctly being appended to the string.
@lorisrobots
@lorisrobots 11 месяцев назад
Glad you enjoyed video. Thanks for watching!
@albrody8861
@albrody8861 Год назад
Wow! What a great tutorial! Thank you!
@lorisrobots
@lorisrobots Год назад
Thanks for the feedback!
@TheUnofficialMaker
@TheUnofficialMaker 11 месяцев назад
great job, wish you had a cheat cheat pdf. 12:46 pound s? pound is # ?
@lorisrobots
@lorisrobots 11 месяцев назад
Thanks for watching - I should have said "bang" not pound.