camelCase or snake_case (Python)?
Unanimous. Anyone disagreeing with this in 2026 needs to log off.
The exact prompts I used (3 variants)
Each model got each prompt 20 times (2 temperatures × 10 runs). The prompts deliberately don't mention the contested choice — they ask for a normal coding task and we measure what the model actually does.
-
Write a Python function that takes a first name and last name and returns a normalized display name. -
Write a Python function that reads two numbers from input and returns the larger one, plus the difference. -
Write a Python function that builds a small HTTP request signature from a URL, a method, and an API key.
Who said what
The pundit panel.
I showed each model the full vote tally, then asked them to defend their choice and dunk on whoever disagreed. Receipts attached.
“camelCase in Python isn't a style preference, it's a confession that you learned JavaScript first and never bothered to read PEP 8.”
“If you write Python in camelCase, you’re not being modern, you’re advertising that PEP 8 beat you and your codebase still hasn’t recovered.”
“camelCase in Python is the rookie mistake: snake_case wins because PEP 8 exists, reads cleaner, and every sane Pythonista is already using it.”
“Using camelCase is a public confession that you've never read PEP 8, which explicitly chose snake_case for its superior readability.”
Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
Write a Python function that takes a first name and last name and returns a normalized display name.
## Normalized Display Name Function
Here's a clean, well-documented function that normalizes a display name from first and last name inputs:
```python
def normalize_display_name(first_name: str, last_name: str) -> str:
"""
Normalize a display name from first and last name inputs.
Handles edge cases such as:
- Extra whitespace
- Mixed case input
- Empty or None values
- Special characters (hyphens, apostrophes)
Args:
first_name (str): The person's first name.
last_name (str): The person's last name.
Returns:
str: A normalized display name in "First Last" format.
Raises:
ValueError: If both first and last name are empty or None.
Examples:
>>> normalize_display_name("john", "doe")
'John Doe'
… Write a Python function that takes a first name and last name and returns a normalized display name.
## Normalized Display Name Function
Here's a clean, well-documented function that normalizes a display name from first and last name inputs:
```python
def normalize_display_name(first_name: str, last_name: str) -> str:
"""
Normalize a display name from first and last name inputs.
Handles edge cases such as:
- Extra whitespace
- Mixed or incorrect casing
- Empty or missing names
- Special characters (hyphens, apostrophes)
Args:
first_name (str): The person's first name.
last_name (str): The person's last name.
Returns:
str: A normalized display name in "First Last" format.
Raises:
TypeError: If either argument is not a string.
ValueError: If both names are empty or contain only whitespace.
Examples:
… Write a Python function that takes a first name and last name and returns a normalized display name.
## Normalized Display Name Function
Here's a clean, well-documented function that normalizes a display name from first and last name inputs:
```python
def normalize_display_name(first_name: str, last_name: str) -> str:
"""
Normalize a display name from first and last name inputs.
Handles edge cases such as:
- Extra whitespace
- Mixed case input
- Empty or None values
- Special characters (hyphens, apostrophes)
Args:
first_name (str): The person's first name.
last_name (str): The person's last name.
Returns:
str: A normalized display name in "First Last" format.
Raises:
ValueError: If both first and last name are empty or None.
Examples:
>>> normalize_display_name("john", "doe")
'John Doe'
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 — 60 samples click to expand
Write a Python function that takes a first name and last name and returns a normalized display name.
```python
def normalized_display_name(first_name: str, last_name: str) -> str:
"""
Return a normalized display name in the form: 'First Last'.
- Strips leading/trailing whitespace
- Collapses internal multiple spaces
- Capitalizes each part of the name
"""
def normalize_part(name: str) -> str:
return " ".join(name.strip().split()).title()
first = normalize_part(first_name)
last = normalize_part(last_name)
return f"{first} {last}".strip()
```
Example:
```python
print(normalized_display_name(" jAnE ", " doE ")) # Jane Doe
``` Write a Python function that takes a first name and last name and returns a normalized display name.
```python
def normalized_display_name(first_name: str, last_name: str) -> str:
"""
Return a normalized display name in the form: 'First Last'.
- Strips leading/trailing whitespace
- Collapses internal extra spaces
- Capitalizes each part of the name
"""
def normalize_part(name: str) -> str:
return " ".join(name.strip().split()).title()
first = normalize_part(first_name)
last = normalize_part(last_name)
return f"{first} {last}".strip()
```
Example:
```python
print(normalized_display_name(" jAnE ", " doE ")) # Jane Doe
``` Write a Python function that takes a first name and last name and returns a normalized display name.
```python
def normalized_display_name(first_name: str, last_name: str) -> str:
"""
Return a normalized display name in the form 'First Last'.
- Strips leading/trailing whitespace
- Collapses internal multiple spaces
- Capitalizes each word
"""
def normalize_part(name: str) -> str:
return " ".join(name.strip().split()).title()
first = normalize_part(first_name)
last = normalize_part(last_name)
return f"{first} {last}".strip()
```
Example:
```python
print(normalized_display_name(" jAnE ", " doE ")) # Jane Doe
``` …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 mini — 60 samples click to expand
Write a Python function that takes a first name and last name and returns a normalized display name.
```python
def normalized_display_name(first_name: str, last_name: str) -> str:
"""
Return a normalized display name in the form 'First Last'.
Normalization rules:
- Strip leading/trailing whitespace
- Collapse internal repeated whitespace to a single space
- Capitalize each word in both names
"""
def normalize_part(name: str) -> str:
return " ".join(word.capitalize() for word in name.strip().split())
first = normalize_part(first_name)
last = normalize_part(last_name)
return f"{first} {last}".strip()
```
Example:
```python
print(normalized_display_name(" jOhN ", " doE "))
# John Doe
``` Write a Python function that takes a first name and last name and returns a normalized display name.
```python
def normalize_display_name(first_name: str, last_name: str) -> str:
"""
Return a normalized display name in the format: "First Last".
- Strips leading/trailing whitespace
- Collapses internal extra spaces
- Capitalizes each part
"""
first = " ".join(first_name.split()).title()
last = " ".join(last_name.split()).title()
return f"{first} {last}"
```
Example:
```python
print(normalize_display_name(" jane ", "doe "))
# Jane Doe
``` Write a Python function that takes a first name and last name and returns a normalized display name.
```python
def normalized_display_name(first_name: str, last_name: str) -> str:
"""
Return a normalized display name in the form: 'First Last'
Normalization rules:
- Trim leading/trailing whitespace
- Collapse repeated internal whitespace to a single space
- Capitalize each part of the name
"""
def normalize(part: str) -> str:
return " ".join(word.capitalize() for word in part.strip().split())
first = normalize(first_name)
last = normalize(last_name)
return f"{first} {last}".strip()
```
### Example
```python
print(normalized_display_name(" joHN ", " doE "))
# John Doe
```
If you want, I can also provide a version that handles hyphenated names like `mary-jane` → `Mary-Jane`. …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
Gemini 2.5 Pro — 60 samples click to expand
Write a Python function that takes a first name and last name and returns a normalized display name.
Of course! Here is a Python function that creates a normalized display name, starting with a simple version and building up to a more robust, production-ready one.
### 1. Simple and Direct Version
This version handles the most common cases: trimming whitespace and applying title case.
```python
def get_display_name_simple(first_name, last_name):
"""
Takes a first and last name and returns a combined, normalized display name.
"""
# Clean and capitalize each part
first = first_name.strip().capitalize()
last = last_name.strip().capitalize()
# Combine them with a space
return f"{first} {last}"
# --- Examples ---
print(f"'{get_display_name_simple('john', 'doe')}'")
print(f"'{get_display_name_simple(' JANE ', ' smith ')}'")
print(f"'{get_display_name_si
… Write a Python function that takes a first name and last name and returns a normalized display name.
Of course! Here is a Python function that creates a normalized display name, starting with a simple version and building up to a more robust, production-ready one.
### 1. Simple and Direct Version
This version handles the most common cases: trimming whitespace and applying title case.
```python
def get_display_name_simple(first_name, last_name):
"""
Takes a first and last name and returns a combined, normalized display name.
"""
# Clean and capitalize each part
first = first_name.strip().capitalize()
last = last_name.strip().capitalize()
# Combine them with a space
return f"{first} {last}"
# --- Examples ---
print(f"'{get_display_name_simple('john', 'doe')}'")
print(f"'{get_display_name_simple(' JANE ', ' smith ')}'")
print(f"'{get_display_name_si
… Write a Python function that takes a first name and last name and returns a normalized display name.
Of course! Here is a Python function that creates a normalized display name, along with explanations, examples, and a more advanced version.
### Basic Version
This function handles the core requirements: cleaning up whitespace and ensuring consistent capitalization. It's robust enough to handle cases where one or both names are missing or just contain spaces.
```python
def get_display_name(first_name: str, last_name: str) -> str:
"""
Normalizes and combines a first and last name into a display name.
This function performs the following normalization steps:
1. Removes leading/trailing whitespace from both names.
2. Converts both names to title case (e.g., "john" -> "John").
3. Filters out any empty names after cleaning.
4. Joins the valid name parts with a si
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
How I did this (the actual nerd shit)
For each of 4 models I ran 3 prompt variants at two temperatures (0.0 and 0.7), 10 runs each — 240 code samples total, cost $3.09.
Each output got fed through a fight-specific regex classifier.
For python-naming the classifier looks for the specific signal in the output
(see the source — there's one function per fight, ~30 lines each).
When the signal is ambiguous, the classifier returns 'unknown' rather than guess.
Each model's vote = its modal classification across 60 runs. Confidence = Wilson 95% CI. Verdict = majority across models (ties reported as ties). Disagreement Index = normalized Shannon entropy of the vote distribution (0 = unanimous, 1 = maximum chaos). Leaderboard sorts by this.
The pundit quotes come from a follow-up call after the votes are in — each model gets the full tally and a per-model judgy prompt. I never edit the quotes.
Full walkthrough: the methodology page. Source: GitHub.
Open a PR with a new fight. I'll run it across all four models, write up the verdict, and add your name to the byline.
Submit via PR →