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]

Comment List

  • Tech With Tim
    November 11, 2020

    You just made me fall in love with python again. thank you

  • Tech With Tim
    November 11, 2020

    thanks tim

  • Tech With Tim
    November 11, 2020

    Please esi aur videos banao

  • Tech With Tim
    November 11, 2020

    Awesome tips but you should really get rid of that habit when you closing brackets before typing in arguments

  • Tech With Tim
    November 11, 2020

    Watching this video made me realize how much I still have to learn

  • Tech With Tim
    November 11, 2020

    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)

  • Tech With Tim
    November 11, 2020

    Most of them are from "A buffet of Awesome python features" by Dan Bader

  • Tech With Tim
    November 11, 2020

    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
    ….

  • Tech With Tim
    November 11, 2020

    This is really cool , learned a lot
    I didn't understand the trick at min 12:30 very well 🙁

    Can any1 explain ?

  • Tech With Tim
    November 11, 2020

    9:49 This code is actually correct:

    for _ in range(3):
    print(_)

    # outputs:
    # 0
    # 1
    # 2

  • Tech With Tim
    November 11, 2020

    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)

  • Tech With Tim
    November 11, 2020

    Just a few months ago, I didn't know what range() is
    And now, I know almost all of them

  • Tech With Tim
    November 11, 2020

    thanks for sharing this content with us

  • Tech With Tim
    November 11, 2020

    Pretty useful. Would be also great to share the codes on a notebook or something.

  • Tech With Tim
    November 11, 2020

    Cools .. Bravo .. Thank You

  • Tech With Tim
    November 11, 2020

    I like your videos. Always get to learn something new.

  • Tech With Tim
    November 11, 2020

    can you explain how to code the problem ducci sequence in python??

  • Tech With Tim
    November 11, 2020

    Привет из России! У тебя замечательные уроки по Python

  • Tech With Tim
    November 11, 2020

    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

  • Tech With Tim
    November 11, 2020

    hey TIM your videos are amazing and very helpful …..love from INDIA

  • Tech With Tim
    November 11, 2020

    Damn I clicked thinking this was about a real python😂

  • Tech With Tim
    November 11, 2020

    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?

  • Tech With Tim
    November 11, 2020

    The last tip was very interesting, It helps a lot to get into more complicated programing, thanks

  • Tech With Tim
    November 11, 2020

    Thanks for the tips! I really enjoyed the *args **kwargs part. Very succinct and direct

  • Tech With Tim
    November 11, 2020

    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?

  • Tech With Tim
    November 11, 2020

    What's the IDE or Editor that you're using?

  • Tech With Tim
    November 11, 2020

    Mesaage box cant import from tkinter
    Help me,, this error is showing when i m using message box in tkinter….

  • Tech With Tim
    November 11, 2020

    please, subtitles in Spanish 😭😭😭

  • Tech With Tim
    November 11, 2020

    Great Tips. Very useful & interesting. Thanks!

  • Tech With Tim
    November 11, 2020

    best args kwargs explanation I've seen!

  • Tech With Tim
    November 11, 2020

    Hello, I was wondering to get your tips on my first Django project and I just learned Django, tell me what to do ,please

  • Tech With Tim
    November 11, 2020

    Which editor he using?

  • Tech With Tim
    November 11, 2020

    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.

  • Tech With Tim
    November 11, 2020

    Loved it
    Please keep doing more vids like this♥️

  • Tech With Tim
    November 11, 2020

    Amazing 💜💜❤️💜❤️💜❤️💜❤️

  • Tech With Tim
    November 11, 2020

    This was a really awesome video, nice! Learned a lot of good tips that goes on my list to do some research on =)

  • Tech With Tim
    November 11, 2020

    sys.getsizeof only calls __sizeof__, which is rarely implemented outside of the standard library.

  • Tech With Tim
    November 11, 2020

    Do hacking with python

Write a comment