3 ms·
Seems significantly worse than ChatGPT for coding, let alone GPT-4. It fails in an easy question(tried multiple times, and it gave wrong answer each time)
by YetAnotherNick 3y ago
Seems significantly worse than ChatGPT for coding, let alone GPT-4. It fails in an easy question(tried multiple times, and it gave wrong answer each time)
Write code to find middle of three numbers in python without using the sorted function
def find_middle_of_three_numbers(a, b, c):
"""Finds the middle number of three numbers.
Args:
a: The first number.
b: The second number.
c: The third number.
Returns:
The middle number.
"""
# Check if the numbers are in order.
if a > b:
a, b = b, a
if b > c:
b, c = c, b
# Return the middle number.
return b