Logo
HAI WORLD! (That's LOLCODE for Hello)
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Sorted Memes

Posts tagged with Sorted

Self-Proclaimed ML Engineer Discovers How Strings Work

Python Programming Debugging AI Algorithms
1 year ago 551.2K views 0 shares
Self-Proclaimed ML Engineer Discovers How Strings Work
Behold, the "ML Engineer" who discovered that Python sorts strings alphabetically instead of numerically! The horror! Next breaking news: water is wet. What we're witnessing here is the classic "I didn't read the docs but it's definitely the language's fault" syndrome. Python's sorted() is working perfectly—it's sorting ["9%", "83%", "25%"] as strings, exactly as it should when you give it strings. Pro tip for our aspiring "ML Engineer": try sorted([int(x.strip('%')) for x in a]) next time. Or maybe stick to Excel?

Today's picks

Amazon Basics Adjustable Dual Monitor Desk Mount, Supports up to 32 inch Monitors and 22 lbs per Arm, Adjustable Tension, VESA 75x75/100x100, Black

Amazon Basics Adjustable Dual Monitor Desk Mount, Supports up to 32 inch Monitors and 22 lbs per Arm, Adjustable Tension, VESA 75x75/100x100, Black

Affiliate
$30.78
Two Sides Of The Same Coin

Two Sides Of The Same Coin

Programming
100.1K views 2 years ago
Minimum skills required: PHP, C#, Scala, Ruby, JavaScript, Boostarap 4, CSS 5, Swift, Minimum 20 years experience. $10/hour

Minimum skills required: PHP, C#, Scala, Ruby, JavaScript, Boostarap 4, CSS 5, Swift, Minimum 20 years experience. $10/hour

Javascript
362.2K views 5 years ago