0.1 + 0.1 + 0.1 is NOT = 0.3
10:11
python coding question class
8:57
itertools product function
19:05
11 ай бұрын
Greedy Algorithms In Python
18:39
11 ай бұрын
irrational pi   part 2
32:06
Жыл бұрын
irrational pi
22:28
Жыл бұрын
virtual environment in python
20:06
2D Histogram in Python
3:32
Жыл бұрын
Hexabins in Python
3:28
Жыл бұрын
Pie charts in Python
6:33
Жыл бұрын
init dataclass in python
15:43
Жыл бұрын
dataclasses in python
9:55
Жыл бұрын
jump five game in python
13:21
Жыл бұрын
daily coding question - tuple
4:44
yocto to yotta in python
7:11
Жыл бұрын
data structures in python
21:50
Жыл бұрын
Пікірлер
@zio3959
@zio3959 12 күн бұрын
@zio3959
@zio3959 13 күн бұрын
Love the tec coding videos. Keep up the good work
@zio3959
@zio3959 13 күн бұрын
Cool
@damadorpl
@damadorpl 4 ай бұрын
not only ptyhon also in JS rust and few others :)
@joecarter5177
@joecarter5177 5 ай бұрын
great video, thanks
@shy1992
@shy1992 6 ай бұрын
Wouldn't it be simply be with the spread(?) operator so MyDataClass(**my_dict) . Assuming that the dict only holds allowed values which are inside the data class. As far as i know the dataclass annotation creates an init function with all the properties as named parameters so it should work
@amritwt
@amritwt 9 ай бұрын
this is a great watch!!
@Derian_De_Grey
@Derian_De_Grey 9 ай бұрын
Спасибо. Очень полезно. Больше я не буду делать таких ошибок.
@SLMolakarayo
@SLMolakarayo Жыл бұрын
Traceback (most recent call last): File "c:\Users\ASUS\OneDrive\Desktop\Folders in Desktop\Python\My Projects\AI Chat bot ew.py", line 7, in <module> bard = Bard(token=token) ^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\bardapi\core.py", line 45, in __init__ self.SNlM0e = self._get_snim0e() ^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\bardapi\core.py", line 151, in _get_snim0e raise Exception( Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'. PS C:\Users\ASUS\OneDrive\Desktop\Folders in Desktop\Python> & C:/Users/ASUS/AppData/Local/Microsoft/WindowsApps/python3.11.exe "c:/Users/ASUS/OneDrive/Desktop/Folders in Desktop/Python/My Projects/AI Chat bot/new.py" Traceback (most recent call last): File "c:\Users\ASUS\OneDrive\Desktop\Folders in Desktop\Python\My Projects\AI Chat bot ew.py", line 7, in <module> bard = Bard(token=token) ^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\bardapi\core.py", line 45, in __init__ self.SNlM0e = self._get_snim0e() ^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\bardapi\core.py", line 151, in _get_snim0e raise Exception( Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'.
@tsituaton
@tsituaton Жыл бұрын
completely useless waste of time 👍
@smritismixtape
@smritismixtape Жыл бұрын
Unable to install langchain ERROR: Failed building wheel for multidict
@MichaelMauser-u5f
@MichaelMauser-u5f Жыл бұрын
Excellent description. You are the best.
@Doggy_Styles_Coding
@Doggy_Styles_Coding Жыл бұрын
looks awsome, keep it up <3
@darrenlefcoe
@darrenlefcoe Жыл бұрын
With regard to hexabins. Look up close hexagonal packing. Hexagons are a natural shape in nature (bee hives, atomic packing etc.), so has many real world use cases...
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Yes, I will try to do a video on this. But as a guide I just use dark mode with the minimal number of add ons, which is why the environment is so clean. It take a lot to motivate me to add a new feature. This is the secret to being clean.
@nicksneider5463
@nicksneider5463 Жыл бұрын
Could you do an overview of your vscode set up? The space you were coding in combined with the seamless integration with the console is so clean. I didn't even notice how much extra information I was processing on the screen until I saw how little you had to look at... also, could you share some reasons for why you might use a hexabin? what you made is cool, but is it anything more than just cool?
@elvismakhc
@elvismakhc Жыл бұрын
are you talking about jupyter notebook
@mh-tr5fb
@mh-tr5fb Жыл бұрын
Your vscode is... different...?.?.
@darrenlefcoe
@darrenlefcoe Жыл бұрын
How do you mean different? It is standard dark mode...
@mh-tr5fb
@mh-tr5fb Жыл бұрын
@@darrenlefcoe no, i didn't mean the color. Is that jupyter inside vscode? How did you manage to do that?
@darrenlefcoe
@darrenlefcoe Жыл бұрын
@@mh-tr5fb yes, it is. VS code supports Jupyter notebooks natively. in fact, it is actually more user friendly than the web based version since it adopts the VS code intellisense, snippets and the rest of the ecosystem...
@mh-tr5fb
@mh-tr5fb Жыл бұрын
@@darrenlefcoe Thanks you. :)
@a1x5h04
@a1x5h04 Жыл бұрын
Ez
@welcomb
@welcomb Жыл бұрын
Declare x as an int, but end up assigning 0.5 to it. 🤦‍♂️
@darrenlefcoe
@darrenlefcoe Жыл бұрын
One of the facets of dynamic languages that we need to be aware of... and can lead to errors in large code bases.
@welcomb
@welcomb Жыл бұрын
@@darrenlefcoe yes so you should have declared x as float instead.
@Corvo1837
@Corvo1837 Жыл бұрын
lol, this was so epic and fun😆
@darrenlefcoe
@darrenlefcoe Жыл бұрын
It is a major task to "learn" a language as mature and complete as Python in 10 days... Let alone 10 minutes. ...but it was fun trying!
@comradepeter87
@comradepeter87 Жыл бұрын
The only reason I clicked on the video was because I was really curious what library/mathematical trickery you use to generate 42 billion digits, let alone generate them accurately. You didn't even touch on it :(
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Well, I might use other methods if there is sufficient demand... You are welcome to propose a different technique.
@avi123
@avi123 Жыл бұрын
the inaccuracy is because of the limited accuracy of floating point calculations, not because of the formula itself.
@darrenlefcoe
@darrenlefcoe Жыл бұрын
We had a discussion on social media and this point was raised, but with 2 million loops, one would expect the floating point error to be zero on average (assuming the error is randomly distributed)...
@joshuagomez8839
@joshuagomez8839 Жыл бұрын
the "not" key word makes the entire statement evaluate to true because it returns false. Hope this helps!
@taquito5242
@taquito5242 Жыл бұрын
hey, i found this actually really useful, thanks for this - you should keep doing these questions!
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Thank you. The feedback is very useful...
@john_z9243
@john_z9243 Жыл бұрын
Hi, or you can make this too ,to save more line ;) : print("hello") if x > 100 else print("goodbye")
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Absolutely, thanks for the comment.
@krisz1911
@krisz1911 Жыл бұрын
Or you can save even more characters: print("hello" if x > 100 else "goodbye")
@darrenlefcoe
@darrenlefcoe Жыл бұрын
@krisz1911 another excellent (and simple) example...
@zio3959
@zio3959 Жыл бұрын
Hi
@darrenlefcoe
@darrenlefcoe Жыл бұрын
hello Zio
@rregid
@rregid Жыл бұрын
I would argue that unless you have really nested code there is no merit in doing this. For example iterating over 2d or higher dimention array is easier to read in one place instead of sprinkled into 2+ helper function as complexity stays the same.
@darrenlefcoe
@darrenlefcoe Жыл бұрын
yes, i would agree with this comment. There are certain places where the benefits are greater and other parts of the code where it would add less value. In fact, i would initially go for nesting (for most simple cases) and then abstract out to functions for more complex (or deeper) nesting...
@universallanguageproject
@universallanguageproject Жыл бұрын
It's using the xor function on the numbers in their binary forms. Where both binary numbers have a corresponding 1, the xor function returns a one for the final output result. 3 minutes in and tldr, but I hope my explanation helps. I hope you discovered what it was, in the video or with this explanation.
@darrenlefcoe
@darrenlefcoe Жыл бұрын
thanks Bradley, comment is appreciated.
@nathangrenier5801
@nathangrenier5801 Жыл бұрын
sick cam bro
@peterkilian9100
@peterkilian9100 Жыл бұрын
Interesting video, hope you enjoyed making it!
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Yes, thank you
@noreply1878
@noreply1878 Жыл бұрын
Amazing
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Thank you! Cheers!
@Jxki69
@Jxki69 Жыл бұрын
inspirational
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Very kind of you to say so.
@tt703
@tt703 Жыл бұрын
pertinent to mention that your tutorial is using twitter API v1, whereas new dev accounts get v2 by default.
@John-up4wz
@John-up4wz Жыл бұрын
'Promosm'
@zio3959
@zio3959 Жыл бұрын
Great video Keep up the good work!
@huangzeyong
@huangzeyong Жыл бұрын
hello, Darren ,where are you from?
@darrenlefcoe
@darrenlefcoe Жыл бұрын
London, England
@abrahimzaman360
@abrahimzaman360 Жыл бұрын
😊😊😊
@darrenlefcoe
@darrenlefcoe Жыл бұрын
Thank you.