The Palos Publishing Company

Follow Us On The X Platform @PalosPublishing
Categories We Write About

Generate prompts for coding practice

Here are categorized prompts for coding practice, suitable for beginner to advanced levels:


Beginner Level

  1. Write a program that prints the Fibonacci sequence up to n terms.

  2. Create a function to check if a string is a palindrome.

  3. Develop a simple calculator that can add, subtract, multiply, and divide two numbers.

  4. Implement a program to find the largest and smallest number in a list.

  5. Write a function to count the number of vowels and consonants in a string.

  6. Build a number guessing game using loops and conditionals.

  7. Create a program to reverse a list without using built-in functions.

  8. Implement a basic to-do list manager using a Python dictionary or list.

  9. Write a function that takes a year and returns whether it is a leap year.

  10. Simulate rolling a dice and print the outcome.


Intermediate Level

  1. Build a function to validate an email address format.

  2. Write a program to sort a list of tuples based on the second element.

  3. Implement a binary search algorithm.

  4. Create a text-based rock-paper-scissors game.

  5. Write a program to detect duplicate elements in a list.

  6. Build a command-line contact manager (add, delete, update contacts).

  7. Create a function that returns the factorial of a number using recursion.

  8. Develop a program that converts Roman numerals to integers.

  9. Write a script to count the frequency of each word in a text file.

  10. Implement a matrix transpose function.


Advanced Level

  1. Build a simple web scraper that extracts headlines from a news website.

  2. Implement a basic CRUD (Create, Read, Update, Delete) API using Flask or FastAPI.

  3. Create a chatbot using a rule-based logic or simple NLP techniques.

  4. Develop a program to solve Sudoku puzzles.

  5. Write a program that implements Dijkstra’s shortest path algorithm.

  6. Build a mini file encryption and decryption tool using Python’s cryptography library.

  7. Implement a real-time chat application using sockets.

  8. Create a system to track and visualize expenses with data stored in SQLite.

  9. Write a multithreaded downloader for large files.

  10. Develop a basic recommendation engine using cosine similarity.


Would you like prompts tailored to a specific language, technology stack, or use case (e.g., web development, data science, algorithms)?

Share this Page your favorite way: Click any app below to share.

Enter your email below to join The Palos Publishing Company Email List

We respect your email privacy

Categories We Write About