100 ChatGPT Programming Prompts
100 ChatGPT Programming Prompts
Prompts
Explore the power of Chat GPT faster with these prompts.
This resource is designed to quickly show you the power of chatGPT and
serve as a starting point for exploration.
Copy and paste these into https://chat.openai.com/ to see what you get. I’ve also
added some responses here. Further explore editing the prompts, trying to direct the
AI, and taking the step-by-step responses as new prompts to feed the bot. Enjoy!
Examples
Beginner
Implement a linear search algorithm in Python to find a specific value in an
array.
Write a bubble sort algorithm in Java to sort an array of integers in ascending
order.
Develop a binary search algorithm in C++ to search a sorted array for a
specific value.
Implement a selection sort algorithm in JavaScript to sort an array of
numbers.
Write a quick sort algorithm in Go to sort an array of strings in alphabetical
order.
Develop a insertion sort algorithm in Python to sort an array of floats in
descending order.
Implement a counting sort algorithm in R to sort an array of positive integers.
Write a merge sort algorithm in Java to sort an array of dates in chronological
order.
Develop a shell sort algorithm in C++ to sort an array of characters in
lexicographical order.
Implement a radix sort algorithm in JavaScript to sort an array of large
integers.
IDE Juggernaut
Implement a breadth-first search algorithm in Python to traverse a graph data
structure.
Build a URL shortener in JavaScript that takes a long URL as input and returns a
shortened URL.
Create a weather app in Ruby that displays the current weather conditions for a
specified city.
Develop a to-do list application in Swift that allows users to add, edit, and delete
tasks.
Build a calculator in Go that takes mathematical expressions as input and returns
the calculated result.
Build a spell checker in Python that takes a string as input and returns a list of
spelling errors, if any.
Engineered Examples
Write code snippets in Rust that demonstrate basic syntax, control structures,
and data types.
Build a simple web application in Flask that displays a list of items and allows
users to add, edit, and delete items.
Build a simple data analysis tool in a new data science framework that reads a
CSV file, performs some basic computations, and generates a visual report.
Write a short program in a new web development framework that implements a
basic RESTful API.
Explore a new machine learning library by creating a simple model that predicts
the likelihood of a binary outcome based on some input data.
Write code snippets in a new database query language that demonstrate how to
insert, update, and retrieve data from a database.
Build a simple chat application in a new real-time communication framework that
allows multiple users to send and receive messages in real-time.
Write a function that takes [parameter type and description] as input and returns
[type + functional explanation of output] in [language]
Write a function that takes [parameter type and description] as input and
[transformation] and returns [type] in [language + library]
Examples
For Beginners
Write a function that takes two integers as input and returns their sum.
Build a function that takes a list of numbers as input and returns the average.
Write a function that takes a string as input and returns the number of vowels
in the string.
Write a function that takes a list of strings as input and returns the longest
string.
Write a function that takes a positive integer as input and returns its factorial.
Write a function that takes a string and a substring as input and returns the
number of occurrences of the substring in the string.
Write a function that takes two strings as input and returns a string that is the
concatenation of the input strings.
Write a function that takes a list of integers as input and returns the second
largest integer.
Write a function that takes a positive integer as input and returns a list of its
divisors.
Write a function that takes a list of numbers as input and returns a list of the
squares of the numbers.
Write a function that takes a string as input and returns a string with all the
letters in reverse order.
Implement a function that takes a list of numbers as input and returns the
median.
Implement a function that takes a string as input and returns the longest
palindromic substring.
Write a function that takes a list of strings as input and returns the list of
anagrams.
Implement a function that takes a list of numbers as input and returns the
largest contiguous sum.
Write a function that takes a list of integers as input and returns a list of all the
prime numbers.
Implement a function that takes a string as input and returns a boolean
indicating whether the string is a valid IP address.
Write a function that takes two strings as input and returns the edit distance
between them.
Implement a function that takes a list of numbers as input and returns the
longest increasing subsequence.
Write a function that takes a string as input and returns the longest common
prefix among all the words in the string.
Implement a function that takes a graph as input and returns the shortest path
between two nodes.
Write a function that takes a list of numbers as input and returns a list of all
the combinations of the numbers that add up to a target sum.
Implement a function that takes a list of strings as input and returns the
longest common substring among all the strings.
Examples
Write a program that performs image recognition using computer vision
techniques.
Develop a natural language processing tool that can extract named entities from
text.
Write a program that can generate new music using machine learning
techniques.
Develop a recommendation system that suggests movies or TV shows based on
a user's viewing history.
Develop a chatbot that can answer questions about a specific domain using a
knowledge graph.
Write a program that implements a variational autoencoder (VAE) to generate
new data points.
Develop a platform for hosting and sharing interactive programming tutorials.
Templates
Develop a [app description] using [tech stack]
Build a [app description] using [tech stack]
Javascript
Develop a real-time chat application using Node.js, Express, and
Socket.io.
Develop a platform for hosting and sharing code snippets that allows users to
view and comment on each other's code using Meteor and MongoDB.
Implement a recommendation system that suggests items based on a user's
previous purchases or interests using the TensorFlow.js library.
Develop a scheduling app that allows users to create and manage
appointments and events using Vue.js and firebase.
Develop a job board that allows users to search and apply for job postings
using Node.js, Express, and Elasticsearch.
Implement a budgeting app that tracks a user's expenses and income to help
them stay within their budget using Next.js and a NoSQL database.
Write a program that implements a recipe database and search engine using
React components and Semantic UI.
Develop a scheduling app that allows users to create and manage
appointments and events using React components and Blueprint.
Write a program that implements a job board using React components and
PrimeNG.
Develop a budgeting app that tracks a user's expenses and income using
React components and Shards.
Write a program that implements a chatbot using React components and
Evergreen.
Develop a platform for hosting and sharing code snippets using React
components and Element.
Write a program that implements a music player app using React components
and Ant Design.
Python
PHP
Develop a web scraper that can scrape data from a specific website and store
it in a database using the PHP Simple HTML DOM Parser library and the
Doctrine ORM library.
Implement a weather app that displays real-time weather information for a
user's location using the OpenWeatherMap API and the Laravel framework.
Implement a recommendation system that suggests items based on a user's
previous purchases or interests using the PHP Machine Learning library.
Develop a scheduling app that allows users to create and manage
Go
Implement a web scraper that can scrape data from a specific website and
store it in a database using the Goquery library and the GORM library.
Develop a weather app that displays real-time weather information for a
user's location using the OpenWeatherMap API and the Echo framework.
Implement a recommendation system that suggests items based on a user's
previous purchases or interests using the Golearn library.
Develop a scheduling app that allows users to create and manage
appointments and events using the Gorilla Mux library and a SQL database.
Implement a chatbot that can respond to user inquiries in a conversational
manner using the GORM library and the Gin framework.
Develop a recipe database and search engine that allows users to search for
recipes based on ingredients or dietary restrictions using the GORM library
and a SQL database.
Solidity
Develop a decentralized voting system on the Ethereum network to securely
record and count votes.
Implement a token-based rewards program for an online platform that
incentivizes users to engage with content and perform specific actions.
Develop a decentralized marketplace for buying and selling goods and
services using smart contracts and the Ethereum network.
Implement a prediction market platform that allows users to bet on the
outcome of various events using a token-based system.
Develop a decentralized crowdfunding platform that allows individuals to pool
funds to support a specific cause or project.
Implement a decentralized identity management system that allows
individuals to securely store and control access to their personal information.
Develop a peer-to-peer lending platform that facilitates direct loans between
borrowers and lenders without the need for a traditional financial institution.
Implement a decentralized gaming platform that allows players to compete
and win tokens through various games and challenges.
Explain how software design patterns can be used to simplify and improve the
development process.
Discuss the impact of quantum computing on software development and
cryptography.
Explain the role of software testing and quality assurance in software
development.