mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.2K
active users

#pythoncode

0 posts0 participants0 posts today
TechKeysX<p>Tuple instead of Lists in Python:<br>Use a tuple instead of a list in Python when you need an immutable, hash able, and faster collection of fixed items.<br><a href="https://mastodon.social/tags/PythonTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTips</span></a> <a href="https://mastodon.social/tags/PythonTuple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTuple</span></a> <a href="https://mastodon.social/tags/LearnPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnPython</span></a> <a href="https://mastodon.social/tags/PythonDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonDev</span></a> <a href="https://mastodon.social/tags/CodingTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingTips</span></a> <a href="https://mastodon.social/tags/Immutable" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Immutable</span></a> <a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://mastodon.social/tags/DevLife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevLife</span></a> <a href="https://mastodon.social/tags/TupleVsLis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TupleVsLis</span></a></p>
Risto A. Paju<p>Testing the Gosper curve in my variable iteration halftoning setup. So far I've only used the Hilbert curve this way, and things get a bit coarser with the Gosper, so it was harder to find images that make nice results. So here we are with the old Venus again.</p><p>The number of points multiplies by 4 for Hilbert and 7 for Gosper on each step, so the latter has to get by with fewer iterations for a sensible resolution. Here we have 6 iterations for 6 grey levels.</p><p><a href="https://mathstodon.xyz/tags/halftoneart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>halftoneart</span></a> <a href="https://mathstodon.xyz/tags/gospercurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gospercurve</span></a> <a href="https://mathstodon.xyz/tags/planefillingcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>planefillingcurve</span></a> <a href="https://mathstodon.xyz/tags/spacefillingcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spacefillingcurve</span></a> <a href="https://mathstodon.xyz/tags/singlelinedrawing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>singlelinedrawing</span></a> <a href="https://mathstodon.xyz/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://mathstodon.xyz/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://mathstodon.xyz/tags/algorithmicart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithmicart</span></a> <a href="https://mathstodon.xyz/tags/algorist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorist</span></a> <a href="https://mathstodon.xyz/tags/mathart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mathart</span></a> <a href="https://mathstodon.xyz/tags/laskutaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>laskutaide</span></a> <a href="https://mathstodon.xyz/tags/ittaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ittaide</span></a> <a href="https://mathstodon.xyz/tags/kuavataide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kuavataide</span></a> <a href="https://mathstodon.xyz/tags/iterati" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iterati</span></a></p>
Risto A. Paju<p>The previous demo made me dig deeper into dithering algorithms. It's something I should have done years ago, as I've been using simple random dithering now and then, and I hadn't even thought of gamma correction. One algorithm in particular caught my eye: Riemersma dithering, which uses the Hilbert curve. Compared to the usual matrices for error diffusion, the curve approach seemed easier to implement in some ways, as it has fewer edge issues.</p><p>More interestingly, it struck a chord with my earlier experiments with space-filling curves in image processing. So it was a kind of familiar territory, but it also seemed esoteric enough that I could imagine making some new discoveries. For example, play with other plane-filling curves besides the Hilbert.</p><p>The first image uses the boustrophedon curve, which makes the vertical wave patterns I recall from a number of non-dithering demos. The second curve is what I call the diagstrophedon, a diagonal zig-zag starting from the top left corner, and I think its wavy artefacts make a nice match for Venus's hair.</p><p>Then in image 3 we have Hilbert, which doesn't seem to make any particular artefacts, and I guess that's a good thing for dithering. Finally 4 uses the Peano curve, which makes some fun wiggles in light areas.</p><p><a href="https://mathstodon.xyz/tags/dithering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dithering</span></a> <a href="https://mathstodon.xyz/tags/riemersmadithering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>riemersmadithering</span></a> <a href="https://mathstodon.xyz/tags/stippling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stippling</span></a> <a href="https://mathstodon.xyz/tags/halftoneart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>halftoneart</span></a> <a href="https://mathstodon.xyz/tags/raster" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>raster</span></a> <a href="https://mathstodon.xyz/tags/pixelart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pixelart</span></a> <a href="https://mathstodon.xyz/tags/hilbertcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hilbertcurve</span></a> <a href="https://mathstodon.xyz/tags/peanocurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>peanocurve</span></a> <a href="https://mathstodon.xyz/tags/planefillingcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>planefillingcurve</span></a> <a href="https://mathstodon.xyz/tags/spacefillingcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spacefillingcurve</span></a> <a href="https://mathstodon.xyz/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://mathstodon.xyz/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://mathstodon.xyz/tags/algorithmicart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithmicart</span></a> <a href="https://mathstodon.xyz/tags/algorist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorist</span></a> <a href="https://mathstodon.xyz/tags/mathart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mathart</span></a> <a href="https://mathstodon.xyz/tags/laskutaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>laskutaide</span></a> <a href="https://mathstodon.xyz/tags/ittaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ittaide</span></a> <a href="https://mathstodon.xyz/tags/kuavataide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kuavataide</span></a> <a href="https://mathstodon.xyz/tags/iterati" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iterati</span></a></p>
TechKeysX<p>Logical operators in Python <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> Coding Life <a href="https://mastodon.social/tags/LogicalOperators" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LogicalOperators</span></a> <a href="https://mastodon.social/tags/AndOrNot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AndOrNot</span></a> <a href="https://mastodon.social/tags/LearnToCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnToCode</span></a> <a href="https://mastodon.social/tags/TechTok" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechTok</span></a> <a href="https://mastodon.social/tags/YouTubeShorts" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>YouTubeShorts</span></a> <a href="https://mastodon.social/tags/ProgrammingHumor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingHumor</span></a> <a href="https://mastodon.social/tags/DevLife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevLife</span></a> <a href="https://mastodon.social/tags/QuickTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>QuickTips</span></a> <a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://mastodon.social/tags/ShortsFeed" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShortsFeed</span></a> <a href="https://mastodon.social/tags/CodeNewbie" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeNewbie</span></a> <a href="https://mastodon.social/tags/FunWithCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FunWithCode</span></a> <a href="https://mastodon.social/tags/GeekMode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GeekMode</span></a></p>
Risto A. Paju<p>Yet another optimized Voronoi tiling. This was supposed to be a simpler alternative to the previous tiling approach, but I ended up going down a rabbit hole of various dithering algorithms.</p><p>Instead of the equal-sum partitions, this uses regular dithering to find the Voronoi seed points, and the tile areas are inversely proportional to the colour values. My simple random dithering didn't work as well as expected, so I started to look into alternatives. I was of course aware of Floyd-Steinberg, and as I grew a bit tired of this demo, I ended up cheating a little by using a ready-made library. Since I was using PIL for image handling anyway, I could simply use its format conversion functions to get a 1-bit image, which uses F-S by default.</p><p>As before, I planned to use edge detection to get smaller tiles at the contrast edges. However, it didn't work so well with dithering, as it would concentrate basically all seed points at the edges. So here I used a mix of edge detection and the original. I think it worked out nicely here, as the bright colours often coincide with areas of small detail, while the dark background doesn't need much resolution.</p><p><a href="https://mathstodon.xyz/tags/voronoidiagram" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>voronoidiagram</span></a> <a href="https://mathstodon.xyz/tags/pixelart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pixelart</span></a> <a href="https://mathstodon.xyz/tags/blockart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blockart</span></a> <a href="https://mathstodon.xyz/tags/tiling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tiling</span></a> <a href="https://mathstodon.xyz/tags/raster" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>raster</span></a> <a href="https://mathstodon.xyz/tags/mosaic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mosaic</span></a> <a href="https://mathstodon.xyz/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://mathstodon.xyz/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://mathstodon.xyz/tags/algorithmicart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithmicart</span></a> <a href="https://mathstodon.xyz/tags/algorist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorist</span></a> <a href="https://mathstodon.xyz/tags/mathart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mathart</span></a> <a href="https://mathstodon.xyz/tags/laskutaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>laskutaide</span></a> <a href="https://mathstodon.xyz/tags/ittaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ittaide</span></a> <a href="https://mathstodon.xyz/tags/kuavataide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kuavataide</span></a> <a href="https://mathstodon.xyz/tags/iterati" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iterati</span></a></p>
TechKeysX<p>Variable Pointing &amp; Delete variable in Python<br><a href="https://mastodon.social/tags/TechContent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechContent</span></a></p><p><a href="https://mastodon.social/tags/CodeWithMe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeWithMe</span></a></p><p><a href="https://mastodon.social/tags/codesnippet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>codesnippet</span></a> </p><p><a href="https://mastodon.social/tags/DeleteVariable" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeleteVariable</span></a></p><p><a href="https://mastodon.social/tags/MemoryManagement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MemoryManagement</span></a></p><p><a href="https://mastodon.social/tags/PythonBasics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonBasics</span></a></p><p><a href="https://mastodon.social/tags/PythonTutorial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTutorial</span></a></p><p><a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a><br><a href="https://mastodon.social/tags/LearnPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnPython</span></a></p><p><a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a></p><p><a href="https://mastodon.social/tags/CodeNewbie" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeNewbie</span></a></p><p><a href="https://mastodon.social/tags/100DaysOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>100DaysOfCode</span></a></p><p><a href="https://mastodon.social/tags/Programmers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programmers</span></a></p><p><a href="https://mastodon.social/tags/DevCommunity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevCommunity</span></a></p>
Risto A. Paju<p>The recent stipplings and partitionings reminded me of this demo from about 2 years ago. In short, it's a Hilbert curve where the iteration level varies by the colour value. I wanted to make some small changes, but I ended up rewriting it completely. The shader approach seemed needlessly heavy and redundant for something that works more naturally on a CPU. But mostly it was just a fun exercise in looking at the same problem from a different angle.</p><p>The first picture shows the original idea. With the new idea, I wanted to get rid of the slanted lines; the result doesn't feel any better to me, but I guess it's interesting in its own way.</p><p><a href="https://mathstodon.xyz/tags/hilbertcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hilbertcurve</span></a> <a href="https://mathstodon.xyz/tags/planefillingcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>planefillingcurve</span></a> <a href="https://mathstodon.xyz/tags/spacefillingcurve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spacefillingcurve</span></a> <a href="https://mathstodon.xyz/tags/lineart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lineart</span></a> <a href="https://mathstodon.xyz/tags/linedrawing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linedrawing</span></a> <a href="https://mathstodon.xyz/tags/singlelinedrawing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>singlelinedrawing</span></a> <a href="https://mathstodon.xyz/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://mathstodon.xyz/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://mathstodon.xyz/tags/algorithmicart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithmicart</span></a> <a href="https://mathstodon.xyz/tags/algorist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorist</span></a> <a href="https://mathstodon.xyz/tags/mathart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mathart</span></a> <a href="https://mathstodon.xyz/tags/laskutaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>laskutaide</span></a> <a href="https://mathstodon.xyz/tags/ittaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ittaide</span></a> <a href="https://mathstodon.xyz/tags/kuavataide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kuavataide</span></a> <a href="https://mathstodon.xyz/tags/iterati" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iterati</span></a></p>
TechKeysX<p>_Slots_ in Python PythonTips <a href="https://mastodon.social/tags/PythonDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonDev</span></a> <a href="https://mastodon.social/tags/PythonTricks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTricks</span></a> <a href="https://mastodon.social/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://mastodon.social/tags/LearnPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnPython</span></a> <a href="https://mastodon.social/tags/CodeNewbie" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeNewbie</span></a> <a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://mastodon.social/tags/DevTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevTips</span></a> <a href="https://mastodon.social/tags/CodingTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingTips</span></a> <a href="https://mastodon.social/tags/__slots__" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>__slots__</span></a> <a href="https://mastodon.social/tags/PythonOptimization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonOptimization</span></a></p>
TechKeysX<p>Descriptors in Python <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/PythonTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTips</span></a> <a href="https://mastodon.social/tags/PythonTricks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTricks</span></a> <a href="https://mastodon.social/tags/CodingShorts" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingShorts</span></a> <a href="https://mastodon.social/tags/LearnPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnPython</span></a> <a href="https://mastodon.social/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://mastodon.social/tags/PythonDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonDev</span></a> <a href="https://mastodon.social/tags/CodeWithMe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeWithMe</span></a> <a href="https://mastodon.social/tags/PythonBeginners" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonBeginners</span></a> <a href="https://mastodon.social/tags/PythonAdvanced" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonAdvanced</span></a> <a href="https://mastodon.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://mastodon.social/tags/PythonDescriptors" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonDescriptors</span></a> <a href="https://mastodon.social/tags/OOPinPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OOPinPython</span></a></p>
Risto A. Paju<p>I came across this halftoning idea sometime last week. While the idea was relatively easy to understand and fun to implement, I've spent quite a lot of time trying to make the result look nice.</p><p>In each row, the image is split into bins containing roughly the same sum of lightness value. This is nice to implement when the number of lines/bins is a power of 2, so we can recurse with a binary split. Thus the line density varies by average lightness. The problem is that density is considered along the x-axis. If things change a lot between rows, the lines get slanted, so they appear more dense. Here I've included some averaging between neighbouring rows to make thing a bit smoother.</p><p>I'm also including a fun glitch from the early tests. The line-density system includes the set of point coordinates and the graph structure (which point is connected to which). What happened here is my generic graph generator that simply finds the nearest neighbours of each point. So in the light areas that are compressed horizontally, the nearest neighbours were left and right.</p><p><a href="https://mathstodon.xyz/tags/halftoneart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>halftoneart</span></a> <a href="https://mathstodon.xyz/tags/lineart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lineart</span></a> <a href="https://mathstodon.xyz/tags/patterns" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>patterns</span></a> <a href="https://mathstodon.xyz/tags/texture" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>texture</span></a> <a href="https://mathstodon.xyz/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://mathstodon.xyz/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://mathstodon.xyz/tags/algorithmicart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithmicart</span></a> <a href="https://mathstodon.xyz/tags/algorist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorist</span></a> <a href="https://mathstodon.xyz/tags/mathart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mathart</span></a> <a href="https://mathstodon.xyz/tags/laskutaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>laskutaide</span></a> <a href="https://mathstodon.xyz/tags/ittaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ittaide</span></a> <a href="https://mathstodon.xyz/tags/kuavataide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kuavataide</span></a> <a href="https://mathstodon.xyz/tags/iterati" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iterati</span></a></p>
TechKeysX<p>LAMBDA Function in Python<br>Python <a href="https://mastodon.social/tags/LambdaFunction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LambdaFunction</span></a> <a href="https://mastodon.social/tags/PythonTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonTips</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://mastodon.social/tags/AnonymousFunction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AnonymousFunction</span></a> <a href="https://mastodon.social/tags/DevTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevTips</span></a> <a href="https://mastodon.social/tags/CodeNewbie" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeNewbie</span></a> <a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://mastodon.social/tags/FunctionalProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FunctionalProgramming</span></a> <a href="https://mastodon.social/tags/LearnPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnPython</span></a></p>
TechKeysX<p>Defaultdict in Python <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/programminglanguage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programminglanguage</span></a> <a href="https://mastodon.social/tags/scripting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>scripting</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a></p>
Risto A. Paju<p>Minimum spanning tree of a dithered image, 4096 vertices. Model: Swetlana</p><p><a href="https://mathstodon.xyz/tags/spanningtreeyoungandsweet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spanningtreeyoungandsweet</span></a> <a href="https://mathstodon.xyz/tags/minimumspanningtree" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>minimumspanningtree</span></a> <a href="https://mathstodon.xyz/tags/primsalgorithm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>primsalgorithm</span></a> <a href="https://mathstodon.xyz/tags/graphtheory" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>graphtheory</span></a> <a href="https://mathstodon.xyz/tags/halftoneart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>halftoneart</span></a> <a href="https://mathstodon.xyz/tags/lineart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lineart</span></a> <a href="https://mathstodon.xyz/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://mathstodon.xyz/tags/opengl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opengl</span></a> <a href="https://mathstodon.xyz/tags/algorithmicart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithmicart</span></a> <a href="https://mathstodon.xyz/tags/algorist" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorist</span></a> <a href="https://mathstodon.xyz/tags/mathart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mathart</span></a> <a href="https://mathstodon.xyz/tags/laskutaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>laskutaide</span></a> <a href="https://mathstodon.xyz/tags/computerart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computerart</span></a> <a href="https://mathstodon.xyz/tags/ittaide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ittaide</span></a> <a href="https://mathstodon.xyz/tags/kuavataide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kuavataide</span></a> <a href="https://mathstodon.xyz/tags/iterati" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iterati</span></a></p>
TechKeysX<p>VSCode File Error Colours <a href="https://mastodon.social/tags/vscode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vscode</span></a> <a href="https://mastodon.social/tags/microsoftdeveloper" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>microsoftdeveloper</span></a> <a href="https://mastodon.social/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a></p>
TechKeysX<p>Vectorized Universal Function Syntax Vs List Comprehension Operation <a href="https://mastodon.social/tags/dataengineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataengineering</span></a> <a href="https://mastodon.social/tags/softwareengineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>softwareengineering</span></a> <a href="https://mastodon.social/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/dataanalytics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataanalytics</span></a> <a href="https://mastodon.social/tags/numypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>numypy</span></a> <a href="https://mastodon.social/tags/arrays" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>arrays</span></a> <a href="https://mastodon.social/tags/machinelearning" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>machinelearning</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a></p>
Abdullah<p>🔍 Palindrome Checker Code in Python! 🔍</p><p>Ever wondered how to check if a word or phrase is a palindrome? A palindrome is a word, phrase, or sequence of characters that reads the same forward and backward (ignoring spaces, punctuation, and capitalization). 🧠💡</p><p><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://mastodon.social/tags/Palindrome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Palindrome</span></a> <a href="https://mastodon.social/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://mastodon.social/tags/CodingLife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingLife</span></a> <a href="https://mastodon.social/tags/LearnToCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnToCode</span></a></p>
WetHat💦<p>The benefits of trailing commas (by <span class="h-card" translate="no"><a href="https://mastodon.social/@treyhunner" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>treyhunner</span></a></span>):<br>➡️ Trailing commas in <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> simplify code changes and reduce errors.<br>➡️ When swapping or adding elements in multi-line data structures, trailing commas prevent syntax errors and make diffs easier to read.<br>➡️They also help avoid implicit string concatenation, a common Python pitfall.</p><p><a href="https://www.pythonmorsels.com/trailing-commas-in-python/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pythonmorsels.com/trailing-com</span><span class="invisible">mas-in-python/</span></a></p><p><a href="https://fosstodon.org/tags/CodingTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingTips</span></a> <a href="https://fosstodon.org/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://fosstodon.org/tags/PythonProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonProgramming</span></a> <a href="https://fosstodon.org/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://fosstodon.org/tags/BestPractices" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BestPractices</span></a> <a href="https://fosstodon.org/tags/PythonCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCode</span></a> <a href="https://fosstodon.org/tags/ProgrammingTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingTips</span></a></p>
Otakubinary オタクバイナリ Misskey Edition<p>Writing in a file in <a href="https://misskey.social/tags/Python" rel="nofollow noopener" target="_blank">#Python</a> ⌨ ​:python:​</p><pre><code>file = open("file.txt","w+") file.write("Writing int he file") file.close()</code></pre><a href="https://misskey.social/tags/pythoncode" rel="nofollow noopener" target="_blank">#pythoncode</a> <a href="https://misskey.social/tags/pythonprogramming" rel="nofollow noopener" target="_blank">#pythonprogramming</a> <a href="https://misskey.social/tags/coding" rel="nofollow noopener" target="_blank">#coding</a> <a href="https://misskey.social/tags/otakubinary" rel="nofollow noopener" target="_blank">#otakubinary</a> <a href="https://misskey.social/tags/otakubinarymisskeyedition" rel="nofollow noopener" target="_blank">#otakubinarymisskeyedition</a><p></p>
Wikinaut<p><a href="https://berlin.social/tags/Berlin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Berlin</span></a> </p><p>Zeiten für <a href="https://berlin.social/tags/Mondaufgang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mondaufgang</span></a> und <a href="https://berlin.social/tags/Sonnenuntergang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Sonnenuntergang</span></a> um <a href="https://berlin.social/tags/Vollmond" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vollmond</span></a>:</p><p>Mi 16.10.2024 CEST MA 17:40:46 CEST Az 082° SU 18:08:53 CEST </p><p>Do 17.10.2024 CEST MA 17:53:36 CEST Az 070° SU 18:06:42 CEST </p><p>Fr 18.10.2024 CEST MA 18:09:35 CEST Az 059° SU 18:04:32 CEST</p><p>(<a href="https://berlin.social/tags/Pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pythoncode</span></a> auf Anfrage)</p>
jonathan w. y. gray 🐨<p>testing vclip - a small command-line tool for compiling randomly selected clips from a folder of videos 🎞️✂️ <br><a href="https://jonathangray.org/2024/08/28/vclip-python" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jonathangray.org/2024/08/28/vc</span><span class="invisible">lip-python</span></a></p><p><a href="https://post.lurk.org/tags/creativecoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>creativecoding</span></a> <a href="https://post.lurk.org/tags/experimentalvideo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>experimentalvideo</span></a> <a href="https://post.lurk.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://post.lurk.org/tags/pythoncode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythoncode</span></a> <a href="https://post.lurk.org/tags/commandline" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>commandline</span></a> <a href="https://post.lurk.org/tags/video" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>video</span></a> <a href="https://post.lurk.org/tags/videoart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>videoart</span></a> <a href="https://post.lurk.org/tags/digitalmethods" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>digitalmethods</span></a> <a href="https://post.lurk.org/tags/pypi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pypi</span></a></p>