Logo
chmod 777: Security through obscurity.
  • 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

Slice-notation Memes

Posts tagged with Slice-notation

Reversing Pi In Python

Python Programming Math
8 hours ago 5.1M views 0 shares
Reversing Pi In Python
Someone posts a "mindblowing" shower thought about how you can't write the digits of pi backwards. Because, you know, infinite digits and all that. Then some absolute legend replies with print(π[::-1]) and asks if they're doing it right. The joke here is that Python's slice notation [::-1] reverses strings, so technically you CAN reverse pi in Python—you just reverse whatever finite representation you have of it. It's the programming equivalent of responding to a philosophical question with "just use a library for that." Classic programmer move: take an abstract mathematical impossibility and solve it with syntactic sugar. The "I'm new to python, is this right?" is just chef's kiss levels of deadpan delivery.

Today's picks

Sony Executives This Quarter

Sony Executives This Quarter

Hardware
252.5M views 29 days ago
NordVPN

NordVPN

Sponsored
VPN
Programmer SQL Query Geek Database Coding T-Shirt

Programmer SQL Query Geek Database Coding T-Shirt

Affiliate
$18.69