10 ULTIMATE Python Tips

10 ULTIMATE Python Tips

Tech With Tim

10 месяцев назад

62,178 Просмотров

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


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

Tech With Tim
Tech With Tim - 25.07.2023 16:50

What are your best Python tips?!

Ответить
Manju Sharma
Manju Sharma - 07.09.2023 02:21

I wanted to say that if you see my msg, I have bought Programming expert course and it is utter waste. You are teaching as if its 10 year old learning programming. I took that course thinking it has shown around 251 problems to solve and I get frustrated seeing True or False question, this or that. Have some standard question You have add practice questions. Not 2nd grade questions. Very disappointed and not getting refund too.

Ответить
Manju Sharma
Manju Sharma - 07.09.2023 02:19

I wanted to say that if you see my msg, I have bought Programming expert course and it is utter waste. You are teaching as if its 10 year old learning programming. I took that course thinking it has shown around 251 problems to solve and I get frustrated seeing True or False question, this or that. Have some standard question You have add practice questions. Not 2nd grade questions. Very disappointed and not getting refund too.

Ответить
Seth Williams
Seth Williams - 02.09.2023 02:40

Also notable that the default second param of .get() is None, so no value error and a convenient truth check

Ответить
Abdullah Alharthi
Abdullah Alharthi - 02.09.2023 00:56

@TechWithTim can u do bygbag

Ответить
Dolo Destinations
Dolo Destinations - 10.08.2023 23:54

I watched your 7 hour free code camp on tensorflow but it didn’t quite have what I needed. Looking for a tutorial on deep learning where a sports score is predicted. Not win or loss. But an actual number. Can you point me in the right direction? Please and thank you.

Ответить
Umang Sahu
Umang Sahu - 10.08.2023 21:12

Please anyone tell me the editor he is using???

Ответить
Brannen Taylor
Brannen Taylor - 10.08.2023 13:22

I like to use ternary statements to do conditional printing. Like Flag = True somewhere. Then later, print (whatever) if flag else “”.

Ответить
Abdelghafour Fid
Abdelghafour Fid - 10.08.2023 02:46

Actually some considers the for/else while/else as a bad pattern. There is a full explanation from mCoding on this.

Ответить
Greg Ketterer
Greg Ketterer - 09.08.2023 04:30

defaultdict > get

Ответить
Uchenna Ajoku
Uchenna Ajoku - 05.08.2023 02:21

Super handy tips. Thank you Tim!

Ответить
Coders Tribe
Coders Tribe - 31.07.2023 10:50

Thanks for sharing. Lambda is one of my best python feature

Ответить
Jamie McParland
Jamie McParland - 31.07.2023 00:56

Neesh neesh😂😂😂😂😢😢😢😢😮😮😅😅😊😊🎉🎉😮😢😢😢😢😢😢😮😂

Ответить
Мир
Мир - 29.07.2023 18:04

Try to explain, why is following not gonna work without defining initial value for "_":

x = 1
data = [(1, 'one'), (2, 'two'), (3, 'three')]

def print2(y):
y = y + x
print(f"the y = y+x is '{y}', and _ is '{_}'")

if _name_ == '__main__':
x = x + 1 - 1
for f, word in data:
f = f + 1 - 1
_ = _ + x
print("word is '", word, "'\n")
print2(f)

Ответить
Jonah Satheesh
Jonah Satheesh - 29.07.2023 13:37

Make a video on "CodeWhisperer"!!!

Ответить
Omar elfarouk
Omar elfarouk - 29.07.2023 11:16

Click bait useless channel

Ответить
Sinisa Vlahovic
Sinisa Vlahovic - 29.07.2023 05:20

After two years of python and knowing most of things mentioned I still apriciate a value of videos like this, I really liked callback lambda example

Ответить
Lynxes YT
Lynxes YT - 28.07.2023 13:12

Also guys if you want items at specific position of a list, you can use:
Say

x = [1,2,3,4,5]

print(x[0::2])

the '::' operator starts from the initial integer and gets item with distance of second integer until the end.

Output:
[1,3,5]

Ответить
Driftwood42
Driftwood42 - 28.07.2023 05:29

Zip is so useful. I taught my friend about that the other day. I still don’t understand lambda though and I have always felt like it’s difficult to read when lambda is used.

Ответить
DJ Cardwell Golf
DJ Cardwell Golf - 27.07.2023 17:53

Can you share a few more impractical things? I don't like practical

Ответить
Positive Ideas
Positive Ideas - 27.07.2023 01:59

Another great video! Thanks, you have helped a lot of people.

Ответить
Felix Müller
Felix Müller - 26.07.2023 17:36

Which theme do you use in VSCode?

Ответить
Kumar Freelancer
Kumar Freelancer - 26.07.2023 16:50

Thank you. I'm glad to know that I use all these tips in my python programs

Ответить
Paul Thomas
Paul Thomas - 26.07.2023 16:43

Great set of useful tips - Thanks Tim.

Ответить
sina orojlo
sina orojlo - 26.07.2023 15:07

Awesome 🎉
Pleas make video about Enumerate

Ответить
Farid
Farid - 26.07.2023 15:02

Tim, you are awesome! Thank you, mate!

Ответить
Ivan
Ivan - 26.07.2023 14:40

Great video!
There is also a zip_longest function in itertools module which goes through as many items as the longest iterable has

Ответить
Keiden
Keiden - 26.07.2023 09:31

Hey Tim I hope you are. Can you give any tips on how you approached theory for retention in CS? I feel like whenever I am reading theory I read it passively. I am doing CS and Maths.

Ответить
Talha Ishan
Talha Ishan - 26.07.2023 01:10

Hi, I wanted to ask if I should start doing projects or start doing exercises to improve?

Ответить
PhunkyBob
PhunkyBob - 25.07.2023 23:05

I didn't knew about the `setdefault` function in dictionaries. I always use "defaultdict" when I need this kind of feature.
Glad to know another way!

Ответить
Jonathan Goode
Jonathan Goode - 25.07.2023 22:56

Great tips as always! Just did a Javascript based full stack boot camp, but I had dabbled in Python and some of these concepts I now in Javascript but was curious about in Python. The biggest one was ternary operators.

Ответить
john bett
john bett - 25.07.2023 22:07

still a beginner sorry to say this

Ответить
gamer_tv367
gamer_tv367 - 25.07.2023 21:57

🙌🙌thanks

Ответить
Taylor McCoy
Taylor McCoy - 25.07.2023 21:43

That was great! Thank you man. Been learning python for the last 6 months or so and didn't know about a good quarter of those things despite my best efforts XD

Ответить
Vancha March
Vancha March - 25.07.2023 21:25

My best python tip would be, that if you want, you can add types to python. Adding return types to functions greatly increases the readability of code without having to read the last lines of a function. It also helps to know what arguments a function expects, instead of just telling you it's name.

Ответить
Alimi Hakeem
Alimi Hakeem - 25.07.2023 21:09

I always love to watch your videos due to the way you explain. I found it useful. Could please make a full stack app video using JavaScript and flask for backend

Ответить
Venky man
Venky man - 25.07.2023 21:09

Quick doubt:
in the ternary operators, what if i dont have an else? is it still possible to use that syntax?

Ответить
Learn with kansh
Learn with kansh - 25.07.2023 20:51

Good to go with python language

Ответить
extremeking 267
extremeking 267 - 25.07.2023 20:38

Could you make a video on the latest features in python 3.10?

Ответить
Nether mobile gaming
Nether mobile gaming - 25.07.2023 19:25

Please do more tensorflow python courses pls

Ответить
TvD1985
TvD1985 - 25.07.2023 19:04

Regarding the get() example, do you prefer this over defaultdict?

from collections import defaultdict
words = ...
word_counts = defaultdict(lambda: 0)
for word in words:
word_counts[word] += 1

Ответить
Julian Reichelt
Julian Reichelt - 25.07.2023 19:04

nice video!

Ответить
M C Mosto
M C Mosto - 25.07.2023 18:49

Just recently following you and yesterday ended one of your tutorials. they are easy to follow and you explain everything so clearly. thanks for that!!!
Could you share some experience or tips on how to reach for a first job in (or with) python when you are at the beggining of this track? I'm trying to change paths here and I feel unsure on how to get a first job here without real experience. Thank you

Ответить
Dr Gamma D
Dr Gamma D - 25.07.2023 18:10

regarding functions with some parameters fixed, say I want to add 3:

>>>func = functools.partial(operator.add, 3)

>>>func(10)
13

allows introspection:
>>>func.args
(3,)

>>>func.func
<operator.add>

Ответить
wolf pain
wolf pain - 25.07.2023 18:05

Great video 👍.

Ответить
Zeen Alam
Zeen Alam - 25.07.2023 17:56

Great! 🎉

Ответить