20 Python Tips and Tricks – Why We Love Python
[ad_1]
This video covers some different tips and trick in python. These tricks make it easier and faster to write python code and give you some good tools to use the future. What’s your favorite python tip and trick? Let me know!
◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
https://tech-with-tim.teachable.com/p/the-fundamentals-of-programming-with-python
📸 Instagram: https://www.instagram.com/tech_with_tim
🌎 Website https://techwithtim.net
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/pr2k55t
📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim
💵 One-Time Donations: https://www.paypal.com/donate/?token=m_JfrPK7DsK4PLk0CxNnv4VPutjqSldorAmgQIQnMozUwwQw93vdul-yhU06IwAuig15uG&country.x=CA&locale.x=
💰 Patreon: https://www.patreon.com/techwithtim
◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
⭐ Tags ⭐
– Tech With Tim
– Python Tutorials
– Python Tips and Tricks
– Tips and Tricks Python
– Python Tricks
– Python Tips
– 20 Python Tips and Tricks
⭐ Hashtags ⭐
#Python
Source
[ad_2]
You just made me fall in love with python again. thank you
thanks tim
Please esi aur videos banao
Awesome tips but you should really get rid of that habit when you closing brackets before typing in arguments
Watching this video made me realize how much I still have to learn
how to use the list comprehension to rewrite the code:
for i in range(5): #[0, 7, 1, 8, 2, 9, 3, 10, 4, 11]
subject_index.append(i)
subject_index.append(i+7)
Most of them are from "A buffet of Awesome python features" by Dan Bader
I'd usually enscapulate in a class anyway. Not sure I'd use these tricks much.
ColoradoDudes = PersonsDBI.load("sex=M AND state='Colorado'")
for Guy in ColoradoDudes:
print(Guy)
#Denver, John, FavClr:beige, Age:51
….
This is really cool , learned a lot
I didn't understand the trick at min 12:30 very well 🙁
Can any1 explain ?
9:49 This code is actually correct:
for _ in range(3):
print(_)
# outputs:
# 0
# 1
# 2
0:09 this (module)
0:52 Enum (class)
1:34 multiline assignment
2:20 Fstrings
3:19 list enumeration
4:14 zip (function)
5:51 help (function)
6:41 DIR (function)
7:42 list comprehension
9:23 Anonymous variable
10:28 concatenation list elements to string
11:16 slicing
11:40 _hello_ (module)
11:49 sys (module)
12:27 most frequent item in list
13:48 lambda (function)
15:07 antigravity (module)
15:25 string multiplication
16:06 unpack (operator)
Just a few months ago, I didn't know what range() is
And now, I know almost all of them
thanks for sharing this content with us
Pretty useful. Would be also great to share the codes on a notebook or something.
Cools .. Bravo .. Thank You
I like your videos. Always get to learn something new.
can you explain how to code the problem ducci sequence in python??
Привет из России! У тебя замечательные уроки по Python
I am working on an inventory program. Let's say, I have a list of all the food in a kitchen, and the items in the list, look like this "meat.turkey" , "meat.beef", "meat.pork"
and fruit, vegatables are listed the same way.
How would I write the code, to search by the first word. I know that meat would be index 0-3.
or if I wanted to search by the word that came after the period?
thanks in advanced
hey TIM your videos are amazing and very helpful …..love from INDIA
Damn I clicked thinking this was about a real python😂
Hey Tim,
Somewhere you have mentioned that you are about 17 or 18, at this age you got lots of knowledge,
From where did you learned all of these things?
University or else?
The last tip was very interesting, It helps a lot to get into more complicated programing, thanks
Thanks for the tips! I really enjoyed the *args **kwargs part. Very succinct and direct
This might b a stupid question: but why is your python window dark and more fancy? Mine is just white and plain? I downloaded python straight from the website?
What's the IDE or Editor that you're using?
Mesaage box cant import from tkinter
Help me,, this error is showing when i m using message box in tkinter….
please, subtitles in Spanish 😭😭😭
Great Tips. Very useful & interesting. Thanks!
best args kwargs explanation I've seen!
Hello, I was wondering to get your tips on my first Django project and I just learned Django, tell me what to do ,please
Which editor he using?
Asking about the **kwargs,
Is the function then capable of using the variable? So if you call func(k=1) you can have operations in the function using the variable k and using the value of 1? That is the say it doesn't regard the variable as a dictionary term but passes it as a dictionary term and then converts it to a variable.
Loved it
Please keep doing more vids like this♥️
Amazing 💜💜❤️💜❤️💜❤️💜❤️
This was a really awesome video, nice! Learned a lot of good tips that goes on my list to do some research on =)
sys.getsizeof only calls __sizeof__, which is rarely implemented outside of the standard library.
Do hacking with python