- 10 Python Tips and Tricks For Writing Better Code

10 Python Tips and Tricks For Writing Better Code

This video is sponsored by Skillshare. Be one of the first 500 people to sign up with this link and get 2 free months of Skillshare Premium:
https://skl.sh/coreyschafer

In this Python Programming video, we will be going over 10 tips and tricks for writing Pythonic code. Here are the timestamps f...
This video is sponsored by Skillshare. Be one of the first 500 people to sign up with this link and get 2 free months of Skillshare Premium:
https://skl.sh/coreyschafer

In this Python Programming video, we will be going over 10 tips and tricks for writing Pythonic code. Here are the timestamps for each topic we will cover...
1) Ternary Conditionals - 0:34
2) Underscore Placeholders - 2:13
3) Context Managers - 4:25
4) Enumerate - 6:50
5) Zip - 8:52
6) Unpacking - 13:02
7) Setattr/Getattr - 19:08
8) GetPass - 26:24
9) Python dash m - 29:18
10) Help/Dir - 33:17

Context Managers Tutorial - https://youtu.be/-aKFBoZpiqA
Sys.path Tutorial - https://youtu.be/CqvZ3vGoGs0


✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel - https://www.youtube.com/c/coreymschafer
Facebook - https://www.facebook.com/CoreyMSchafer
Twitter -
Instagram - https://www.instagram.com/coreymschafer/

#Python

#python #python tips and tricks #python programming #python tutorial #ternary operator #python ternary operator #python ternary #ternary conditional #python underscore #context manager #enumerate #python enumerate #python zip #python zip function #python unpacking #python setattr #python getattr #python dash m #python -m #python help function #python dir function #skillshare #skillshare.com #clean code #how to write clean code #corey schafer #pythonic
), you can use zip(nums[], nums[1::2]) to get ((0, 1), (2, 3), (4, 5)) - 10 Python Tips and Tricks For Writing Better Code

), you can use zip(nums[], nums[1::2]) to get ((0, 1), (2, 3), (4, 5))

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:00:02 - 00:39:21
)  - ternary operator ; - 10 Python Tips and Tricks For Writing Better Code

) - ternary operator ;

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:00:34 - 00:02:13
) Ternary Conditionals - - 10 Python Tips and Tricks For Writing Better Code

) Ternary Conditionals -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:00:34 - 00:02:13
I have a question though, why can't you write x = int(condition) at ? - 10 Python Tips and Tricks For Writing Better Code

I have a question though, why can't you write x = int(condition) at ?

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:01:40 - 00:39:21
a better way to write it is print(int(conditional)) - 10 Python Tips and Tricks For Writing Better Code

a better way to write it is print(int(conditional))

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:02:00 - 00:39:21
x = int(condition) # knowingly missing the point - 10 Python Tips and Tricks For Writing Better Code

x = int(condition) # knowingly missing the point

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:02:00 - 00:39:21
)  - Underscores in Numeric Literals + about f-string; - 10 Python Tips and Tricks For Writing Better Code

) - Underscores in Numeric Literals + about f-string;

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:02:13 - 00:04:29
) Underscore Placeholders - - 10 Python Tips and Tricks For Writing Better Code

) Underscore Placeholders -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:02:13 - 00:04:25
this will be fantastic for my code. Thanks Corey! - 10 Python Tips and Tricks For Writing Better Code

this will be fantastic for my code. Thanks Corey!

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:02:13 - 00:39:21
@ it is not practical because often your '0'  and '1' is a multiple line of code unlike this example where they are simple 0 or 1 - 10 Python Tips and Tricks For Writing Better Code

@ it is not practical because often your '0' and '1' is a multiple line of code unlike this example where they are simple 0 or 1

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:02:17 - 00:39:21
@ you don't need the underscores. Example......(price = 1000) print (f'Your price is ${price:,}') will print  $1,000. Maybe in the older version you had to have it but now you don't - 10 Python Tips and Tricks For Writing Better Code

@ you don't need the underscores. Example......(price = 1000) print (f'Your price is ${price:,}') will print $1,000. Maybe in the older version you had to have it but now you don't

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:03:05 - 00:39:21
:o Amazing! Just... wow. Thank you! - 10 Python Tips and Tricks For Writing Better Code

:o Amazing! Just... wow. Thank you!

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:03:12 - 00:39:21
Note that syntax is only valid in Python 3.6 and later. - 10 Python Tips and Tricks For Writing Better Code

Note that syntax is only valid in Python 3.6 and later.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:03:13 - 00:39:21
when I use : print(f'{total : . }') , It raise an error : ValueError: Format specifier missing precision. - 10 Python Tips and Tricks For Writing Better Code

when I use : print(f'{total : . }') , It raise an error : ValueError: Format specifier missing precision.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:04:24 - 00:39:21
) Context Managers - - 10 Python Tips and Tricks For Writing Better Code

) Context Managers -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:04:25 - 00:06:50
)  - context manager ; - 10 Python Tips and Tricks For Writing Better Code

) - context manager ;

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:04:29 - 00:06:49
Because the file is being opened read-only, there is really no harm in this. Because CPython does reference-counting, the file is automatically closed anyway, soon as the last reference to it is dropped. - 10 Python Tips and Tricks For Writing Better Code

Because the file is being opened read-only, there is really no harm in this. Because CPython does reference-counting, the file is automatically closed anyway, soon as the last reference to it is dropped.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:04:39 - 00:39:21
questions (using the example you used for the file reading thing around ):What does f mean?what does it mean when you use f. ?what does the ' mean? - 10 Python Tips and Tricks For Writing Better Code

questions (using the example you used for the file reading thing around ):What does f mean?what does it mean when you use f. ?what does the ' mean?

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:05:50 - 00:39:21
)  -  enumerate function ; - 10 Python Tips and Tricks For Writing Better Code

) - enumerate function ;

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:06:49 - 00:09:01
) Enumerate - - 10 Python Tips and Tricks For Writing Better Code

) Enumerate -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:06:50 - 00:08:52
At  you could have deleted the line word_count = len(words) and placed print(len(words)) on the following line. - 10 Python Tips and Tricks For Writing Better Code

At you could have deleted the line word_count = len(words) and placed print(len(words)) on the following line.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:06:56 - 00:39:21
On  you Chan do it in Java Like this:for(String name : names) {} - 10 Python Tips and Tricks For Writing Better Code

On you Chan do it in Java Like this:for(String name : names) {}

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:07:25 - 00:39:21
what about this: - 10 Python Tips and Tricks For Writing Better Code

what about this:

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:08:21 - 00:39:21
But I use this:list = ['a', 'b', 'c']for i in list:print(list.index(i), i) - 10 Python Tips and Tricks For Writing Better Code

But I use this:list = ['a', 'b', 'c']for i in list:print(list.index(i), i)

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:08:28 - 00:39:21
) Zip - - 10 Python Tips and Tricks For Writing Better Code

) Zip -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:08:52 - 00:13:02
Although I didn't know about zip () and it does seem pretty helpful, it looks like you could get an equally organized structure if you use a dictionary instead since the two lists are inherently related and do something like:for name, hero in dictionary_name.items():In any case, great video and I definitely managed to learn some things - 10 Python Tips and Tricks For Writing Better Code

Although I didn't know about zip () and it does seem pretty helpful, it looks like you could get an equally organized structure if you use a dictionary instead since the two lists are inherently related and do something like:for name, hero in dictionary_name.items():In any case, great video and I definitely managed to learn some things

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:08:52 - 00:39:21
)  -  zip function ; - 10 Python Tips and Tricks For Writing Better Code

) - zip function ;

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:09:01 - 00:13:46
For the example in , I'm pretty sure noone would ever do that. If your goal is to write simple, easy to read code your best bet probably is: - 10 Python Tips and Tricks For Writing Better Code

For the example in , I'm pretty sure noone would ever do that. If your goal is to write simple, easy to read code your best bet probably is:

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:09:05 - 00:39:21
hi, Thank you for this lesson, is very useful. but I have a question for .  print(f'{name}is actually {hero}'), i mean if just use--print(name, "is actually", hero) is not the same? why need to using format? thank you - 10 Python Tips and Tricks For Writing Better Code

hi, Thank you for this lesson, is very useful. but I have a question for . print(f'{name}is actually {hero}'), i mean if just use--print(name, "is actually", hero) is not the same? why need to using format? thank you

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:09:19 - 00:39:21
This was the moment that I learned the truth...I didn't ask for this! - 10 Python Tips and Tricks For Writing Better Code

This was the moment that I learned the truth...I didn't ask for this!

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:10:20 - 00:39:21
very informative tips. thank you so much.  a tip if someone need to convert two lists of same length into dictionary then we can also use the zip function mydictionary=dict(zip(listA,listB)). - 10 Python Tips and Tricks For Writing Better Code

very informative tips. thank you so much. a tip if someone need to convert two lists of same length into dictionary then we can also use the zip function mydictionary=dict(zip(listA,listB)).

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:11:18 - 00:39:21
I have a question about names of lists in . When you run it Python knows that list 'universes' correspond to the 'universe' call? Because you have different words in the name of the list and in print function argument. - 10 Python Tips and Tricks For Writing Better Code

I have a question about names of lists in . When you run it Python knows that list 'universes' correspond to the 'universe' call? Because you have different words in the name of the list and in print function argument.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:12:46 - 00:39:21
) Unpacking - - 10 Python Tips and Tricks For Writing Better Code

) Unpacking -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:13:02 - 00:19:08
)  -  unpacking tuples (use asterisk and underscore); - 10 Python Tips and Tricks For Writing Better Code

) - unpacking tuples (use asterisk and underscore);

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:13:46 - 00:19:11
The parentheses are not needed.  In fact,a, b = b, ais the most elegant code swapping two values. - 10 Python Tips and Tricks For Writing Better Code

The parentheses are not needed. In fact,a, b = b, ais the most elegant code swapping two values.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:14:15 - 00:39:21
@a, _ = (1,2)print(a) - 10 Python Tips and Tricks For Writing Better Code

@a, _ = (1,2)print(a)

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:15:42 - 00:39:21
Great video! I just had one question, at  why does c return a list and not a tuple? - 10 Python Tips and Tricks For Writing Better Code

Great video! I just had one question, at why does c return a list and not a tuple?

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:17:30 - 00:39:21
same things i want to do in nested json is it possible? - 10 Python Tips and Tricks For Writing Better Code

same things i want to do in nested json is it possible?

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:19:00 - 00:39:21
) Setattr/Getattr - - 10 Python Tips and Tricks For Writing Better Code

) Setattr/Getattr -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:19:08 - 00:26:24
)  - getting and setting attributes to object  (setattr, getattr ); - 10 Python Tips and Tricks For Writing Better Code

) - getting and setting attributes to object (setattr, getattr );

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:19:11 - 00:26:24
As a Java dev I feel uncomfortable at  ^^ - 10 Python Tips and Tricks For Writing Better Code

As a Java dev I feel uncomfortable at ^^

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:21:30 - 00:39:21
wait  you printed the variable first, which was set to first_key  which meant 'first', but when you printed it out you got the other one 'Corey' ??? - 10 Python Tips and Tricks For Writing Better Code

wait you printed the variable first, which was set to first_key which meant 'first', but when you printed it out you got the other one 'Corey' ???

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:23:46 - 00:39:21
For the topic you talked about roughly at  :If you have multiple attributes like this you don't neep to loop over them. It's easier to use <class>.__dict__.update(<attributedictionary>). - 10 Python Tips and Tricks For Writing Better Code

For the topic you talked about roughly at :If you have multiple attributes like this you don't neep to loop over them. It's easier to use <class>.__dict__.update(<attributedictionary>).

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:24:02 - 00:39:21
the same can be achieved by setattr(person, **person_info) - 10 Python Tips and Tricks For Writing Better Code

the same can be achieved by setattr(person, **person_info)

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:24:48 - 00:39:21
- Why all the orchestration, it's much easier to just update `__dict__` of your `person` instance, e.g. `person.__dict__.update(person_info)` instead of the whole `for..in -> setattr(...)` loop. - 10 Python Tips and Tricks For Writing Better Code

- Why all the orchestration, it's much easier to just update `__dict__` of your `person` instance, e.g. `person.__dict__.update(person_info)` instead of the whole `for..in -> setattr(...)` loop.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:24:50 - 00:39:21
)  - getpass instead input (read from keyboard) ; - 10 Python Tips and Tricks For Writing Better Code

) - getpass instead input (read from keyboard) ;

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:26:24 - 00:29:22
) GetPass - - 10 Python Tips and Tricks For Writing Better Code

) GetPass -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:26:24 - 00:29:18
I found that using the SublimeREPL plugin works out fairly well when I need to use inputs and will have that open in another tab in the application. - 10 Python Tips and Tricks For Writing Better Code

I found that using the SublimeREPL plugin works out fairly well when I need to use inputs and will have that open in another tab in the application.

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:27:10 - 00:39:21
) Python dash m - - 10 Python Tips and Tricks For Writing Better Code

) Python dash m -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:29:18 - 00:33:17
)  - run python with dash m in terminal (python -m ...); - 10 Python Tips and Tricks For Writing Better Code

) - run python with dash m in terminal (python -m ...);

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:29:22 - 00:32:32
)  - built-in functions (help, dir etc) - 10 Python Tips and Tricks For Writing Better Code

) - built-in functions (help, dir etc)

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:32:32 - 00:39:21
) Help/Dir - - 10 Python Tips and Tricks For Writing Better Code

) Help/Dir -

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:33:17 - 00:39:21
U accidentally delivered one more tip than you said (at least for me), u typed exit() to exit Python from terminal, while I used to import sys first from os, and then do sys.exit()..Thanks, you are one of the best teachers for me!!!👍🤗 - 10 Python Tips and Tricks For Writing Better Code

U accidentally delivered one more tip than you said (at least for me), u typed exit() to exit Python from terminal, while I used to import sys first from os, and then do sys.exit()..Thanks, you are one of the best teachers for me!!!👍🤗

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:36:49 - 00:39:21
Your help() really help me❤ - 10 Python Tips and Tricks For Writing Better Code

Your help() really help me❤

10 Python Tips and Tricks For Writing Better Code
2019年03月26日 
00:38:29 - 00:39:21

Corey Schafer

※本サイトに掲載されているチャンネル情報や動画情報はYouTube公式のAPIを使って取得・表示しています。

Timetable

動画タイムテーブル

動画数:236件

how to override existing environment variables. (This is new to me) - Python Tutorial: Securely Manage Passwords and API Keys with DotEnv

how to override existing environment variables. (This is new to me)

Python Tutorial: Securely Manage Passwords and API Keys with DotEnv
2024年04月18日  @JorgeEscobarMX 様 
00:10:42 - 00:16:58
the future spoken is my current present. Unless I'm completely desperate, I'm not hitting reddit or google/stack overflow for most roadblocks. - How to Use ChatGPT as a Powerful Tool for Programming

the future spoken is my current present. Unless I'm completely desperate, I'm not hitting reddit or google/stack overflow for most roadblocks.

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  o k t o b e r 様 
00:12:22 - 00:31:08
Good video as always😉  I remember asking that too lol - How to Use ChatGPT as a Powerful Tool for Programming

Good video as always😉 I remember asking that too lol

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  kami 様 
00:28:19 - 00:31:08
@ - pure gold, pure gold! <3 - How to Use ChatGPT as a Powerful Tool for Programming

@ - pure gold, pure gold! <3

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  ulf gjerdingen 様 
00:28:26 - 00:31:08
You almost had me there haha! ChatGPT can be wrong but it certainly wasn't wrong about those top notch resources! I massively appreciate all the uploads and I hope they keep coming supercharged with Chat GPT. Thanks to you, sentdex, techwithtim and Dennis Ivy I now know how to properly code on python, use git for version control and build a functional website. - How to Use ChatGPT as a Powerful Tool for Programming

You almost had me there haha! ChatGPT can be wrong but it certainly wasn't wrong about those top notch resources! I massively appreciate all the uploads and I hope they keep coming supercharged with Chat GPT. Thanks to you, sentdex, techwithtim and Dennis Ivy I now know how to properly code on python, use git for version control and build a functional website.

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  Uj Vag 様 
00:28:42 - 00:31:08
and it's  am here (south east asia), and idk why I'm watching a python tutorial rather than sleeping 😂 - Python Tutorial: Simulate the Powerball Lottery Using Python

and it's am here (south east asia), and idk why I'm watching a python tutorial rather than sleeping 😂

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  X 様 
00:02:49 - 00:38:56
… nice… 😂 - Python Tutorial: Simulate the Powerball Lottery Using Python

… nice… 😂

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Bartosz Turkowyd 様 
00:04:50 - 00:38:56
I've seen every Python video you've made....   first innuendo. 😜 - Python Tutorial: Simulate the Powerball Lottery Using Python

I've seen every Python video you've made.... first innuendo. 😜

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Martin Beaudry 様 
00:04:52 - 00:38:56
Man it's  am in India I am lucky to be the first one to hear your voice god bless you brother and an awesome teacher. - Python Tutorial: Simulate the Powerball Lottery Using Python

Man it's am in India I am lucky to be the first one to hear your voice god bless you brother and an awesome teacher.

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Big Samosa 様 
00:12:15 - 00:38:56
# you can also use the built-in pprint module for pretty printing dictionaries ;) - Python Tutorial: Simulate the Powerball Lottery Using Python

# you can also use the built-in pprint module for pretty printing dictionaries ;)

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Schoenling Wunderbar 様 
00:25:00 - 00:38:56
it would be very interesting to see if there could be a step function where this algorithm can simulate the increases in jackpot winnings. It’s going to be one in 292+ million of a chance that you hit it at all much less multiple times, but the code should be interesting to see. - Python Tutorial: Simulate the Powerball Lottery Using Python

it would be very interesting to see if there could be a step function where this algorithm can simulate the increases in jackpot winnings. It’s going to be one in 292+ million of a chance that you hit it at all much less multiple times, but the code should be interesting to see.

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  20 80 様 
00:27:43 - 00:38:56
A OAuth Django video would be awesome!(Applicable to all sorts of OAuth situations, not just the YouTube API.) - Python YouTube API Tutorial: Using OAuth to Access User Accounts

A OAuth Django video would be awesome!(Applicable to all sorts of OAuth situations, not just the YouTube API.)

Python YouTube API Tutorial: Using OAuth to Access User Accounts
2020年09月10日 
00:07:58 - 00:43:21
At  you move the file and see some blurred miniature version of your open folders in the dock. How did you enable that? - Python YouTube API Tutorial: Using OAuth to Access User Accounts

At you move the file and see some blurred miniature version of your open folders in the dock. How did you enable that?

Python YouTube API Tutorial: Using OAuth to Access User Accounts
2020年09月10日 
00:09:58 - 00:43:21
In case you are getting Error 403 ("access_denied The developer hasn’t given you access to this app") go to the OAuth consent screen and under Test Users add your email by clicking on Add Users.  You should be able to grant access after you've added User. - Python YouTube API Tutorial: Using OAuth to Access User Accounts

In case you are getting Error 403 ("access_denied The developer hasn’t given you access to this app") go to the OAuth consent screen and under Test Users add your email by clicking on Add Users. You should be able to grant access after you've added User.

Python YouTube API Tutorial: Using OAuth to Access User Accounts
2020年09月10日 
00:19:36 - 00:43:21
@corey  So why did you add the join function here, when appending the video id to the list its already a list and its working for me when I pass the vid_ids directly - Python YouTube API Tutorial: Calculating the Duration of a Playlist

@corey So why did you add the join function here, when appending the video id to the list its already a list and its working for me when I pass the vid_ids directly

Python YouTube API Tutorial: Calculating the Duration of a Playlist
2020年06月11日 
00:11:24 - 00:37:38
TypeError: expected string or bytes-like object, I am taking this error in , any idea? - Python YouTube API Tutorial: Calculating the Duration of a Playlist

TypeError: expected string or bytes-like object, I am taking this error in , any idea?

Python YouTube API Tutorial: Calculating the Duration of a Playlist
2020年06月11日 
00:18:50 - 00:37:38
(I love that "Whoops that went too well"-moment at  :D) - Python Tutorial: Real World Example - Using Patreon API and Pillow to Automate Image Creation

(I love that "Whoops that went too well"-moment at :D)

Python Tutorial: Real World Example - Using Patreon API and Pillow to Automate Image Creation
2020年05月11日 
00:35:19 - 00:52:33