Комментарии:
What are your best Python tips?!
Ответить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.
Ответить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.
ОтветитьAlso notable that the default second param of .get() is None, so no value error and a convenient truth check
Ответить@TechWithTim can u do bygbag
Ответить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.
ОтветитьPlease anyone tell me the editor he is using???
ОтветитьI like to use ternary statements to do conditional printing. Like Flag = True somewhere. Then later, print (whatever) if flag else “”.
ОтветитьActually some considers the for/else while/else as a bad pattern. There is a full explanation from mCoding on this.
Ответитьdefaultdict > get
ОтветитьSuper handy tips. Thank you Tim!
ОтветитьThanks for sharing. Lambda is one of my best python feature
ОтветитьNeesh neesh😂😂😂😂😢😢😢😢😮😮😅😅😊😊🎉🎉😮😢😢😢😢😢😢😮😂
Ответить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)
Make a video on "CodeWhisperer"!!!
ОтветитьClick bait useless channel
Ответить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
Ответить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]
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.
ОтветитьCan you share a few more impractical things? I don't like practical
ОтветитьAnother great video! Thanks, you have helped a lot of people.
ОтветитьWhich theme do you use in VSCode?
ОтветитьThank you. I'm glad to know that I use all these tips in my python programs
ОтветитьGreat set of useful tips - Thanks Tim.
ОтветитьAwesome 🎉
Pleas make video about Enumerate
Tim, you are awesome! Thank you, mate!
ОтветитьGreat video!
There is also a zip_longest function in itertools module which goes through as many items as the longest iterable has
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.
ОтветитьHi, I wanted to ask if I should start doing projects or start doing exercises to improve?
Ответить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!
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.
Ответитьstill a beginner sorry to say this
Ответить🙌🙌thanks
Ответить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
Ответить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.
Ответить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
ОтветитьQuick doubt:
in the ternary operators, what if i dont have an else? is it still possible to use that syntax?
Good to go with python language
ОтветитьCould you make a video on the latest features in python 3.10?
ОтветитьPlease do more tensorflow python courses pls
Ответить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
nice video!
Ответить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
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>
Great video 👍.
ОтветитьGreat! 🎉
Ответить