Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

AI vs. Human Coders: Who Will Win in 2025?

Shantun Parmar
Python in Plain English
5 min readDec 8, 2024

--

AI vs. Human Coders: Who Will Win in 2025?
Image created using blackbox.ai

By 2025 coding will be in everything. There’s a big question: Which will be better, AI or human coders at this? If you don’t know, Artificial Intelligence (AI) can help with coding. But can AI outdo humans? We’ll take a look at the differences between the code written by AI and human coders in examples.

How AI Helps with Coding

AI is like a robot which can think, learn. It’s writing code and doing it better, or at least faster, at fixing errors, and even at rough drafts of what to code next. However, AI is not there yet; it requires human coders to tell it what to work on, and check the work it produces. It is humans who do get to decide what to build and how to make it fun or useful.

Let’s take an example of taking coding a game them. There’s a good chance AI would help write some basic parts of the code, for example, how to randomly pick a number for a guessing game. The human coder, however, is the one who decides what the game said rules are, how it looks, and in what way it should be more exciting.

Example 1: Human Coder’s Code for a Simple Game

Here’s how a human coder might write a guessing game in Python:

import random

def guess_the_number():
number_to_guess = random.randint(1, 10)
guess = 0

print("I'm thinking of a number between 1 and 10...")

while guess != number_to_guess:
guess = int(input("Guess the number: "))
if guess < number_to_guess:
print("Too low! Try again.")
elif guess > number_to_guess:
print("Too high! Try again.")

print("You guessed it! The number was", number_to_guess)

guess_the_number()

In this code the human coder uses the random.randint(1, 10) to pick a random number, then sets up a loop where it will keep guessing until it gets it right and what we will print if the guess is too high or too low. This is where AI could help, this is something something the coder will add the fun part of how the game works.

How AI Might Help with Coding

Code can be suggested by AI or erros can be fixed by AI. Let’s take the example of if AI suggests you use random.randint(1, 10) instead of…

--

--

Published in Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Written by Shantun Parmar

Software Engineer and Full Stack Developer specializing in Python & JavaScript | Link : https://www.linkedin.com/in/shantun-parmar/

Responses (1)

Write a response