python

Back Open Paginator
05.03.2026 17:44
WanderingInDigitalWorlds (@WanderingInDigitalWorlds@sunny.garden)

ROFL I was confused as to why my Nested Loops written in Python are not getting a similar result to what I am essentially transcribing into the Pyzo. However, after checking my indentation and if a line was aligned correctly with another one...I found that "totalRolls += count" wasn't aligned with "while True:".

This matters a lot, once I resolved that issue with my replication of the code it behaved as expected. This made me happy, as I understand the idea. Loops within looks can be used to determine probabilities for a defined action (like how many rolls it takes before you get a 6).

I wonder if there if this is related to an undiagnosed learning disorder that I don't have a name for.

#Python #Programming




Show Original Post


05.03.2026 17:40
radwebhosting (@radwebhosting@mastodon.social)

🚀 How to Deploy on

This article provides a guide demonstrating how to deploy Funkwhale on Debian VPS.
What is Funkwhale?
Funkwhale is a self-hosted, federated audio platform for streaming and sharing music & podcasts. It uses so libraries can follow/feature content across instances (like Mastodon), and it offers a web UI plus ...
Continued 👉 blog.radwebhosting.com/deploy-





Show Original Post


05.03.2026 17:40
auinobackonlinux (@auinobackonlinux@mastodon.social)

Trying to play with and ... here's a simple script to create tasks: using the Task Widget at extensions.gnome.org/extension it's possible to show tasks in the top menu bar of Ubuntu.





Show Original Post


05.03.2026 17:30
Reuven (@Reuven@fosstodon.org)

Calling astype on #Python #Pandas series with unconvertible values?

Use errors='ignore' to skip the error:

s = pd.Series([10, np.nan, 30])
s.astype('int8') # raises IntCastingNaNError
s.astype('int8', errors='ignore') # keeps original dtype





Show Original Post


05.03.2026 17:25
doctorwhom (@doctorwhom@mastodon.social)

It's fun that made just makes it so you can't build .




Show Original Post


05.03.2026 17:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

Discord is hiring Senior Software Engineer, Developer Success

🔧 #cplusplus #python #rust #typescript #react #unity #azure #gcp #seniorengineer
🌎 San Francisco, Bay Area
⏰ Full-time
🏢 Discord

Job details jobsfordevelopers.com/jobs/sen
#jobalert #jobsearch #hiring




Show Original Post


05.03.2026 17:05
lobsters (@lobsters@mastodon.social)

AI And The Ship of Theseus lobste.rs/s/3dtgmr
lucumr.pocoo.org/2026/3/5/thes




Show Original Post


05.03.2026 17:00
PythonPeak (@PythonPeak@mastodon.social)

Turbocharge Stop Missing Trick Plot With Python

Math.sin plots a rhythm

Leverages the sine function to create a smooth wave traced with a single character per column.

youtube.com/watch?v=6Ju8-pxAy2Y




Show Original Post


05.03.2026 17:00
jcon (@jcon@mastodon.social)

Excited for EUROPE 2026? See Michal Broz & Don Bourne at in Cologne giving a about 'Think is Only for ? Think Again. A Hands-On AI Workshop That Will Change Your Mind!'

Are you ready to

🎟️ 2026.europe.jcon.one/tickets
Free for members





Show Original Post


05.03.2026 16:44
ThePSF (@ThePSF@fosstodon.org)

How do you use Python and its related technologies? Let us know in the 2026 Python Developers Survey! 🐍 #python #pythondevsurvey
surveys.jetbrains.com/s3/pytho




Show Original Post


05.03.2026 16:28
treyhunner (@treyhunner@mastodon.social)

Python Tip #64 (of 365):

Ensure your classes all have a sensible __repr__ method.

A __repr__ method controls the default string representation of your class instances.

Pretty much every object should have a nice string representation.

For every class you make, either:

1. create a __repr__ method
2. use a tool (like the dataclass decorator) to create a __repr__ method
3. inherit from a class that has a useful __repr__ method method.

pym.dev/customizing-string-rep

🧵 (1/2)




Show Original Post


05.03.2026 16:16
feed (@feed@igeek.gamer-geek-news.com)

📰 Pandas vs. Polars: A Complete Comparison of Syntax, Speed, and Memory

Need help choosing the right Python dataframe library? This article compares Pandas and Polars to help you decide.

📰 Source: KDnuggets
🔗 Link: https://www.kdnuggets.com/pandas-vs-polars-a-complete-comparison-of-syntax-speed-and-memory

#Python #DataScience





Show Original Post


1 ...376 377 378 379 380 381 382 383 384 385 386 ...1592
UP