Generated by All in One SEO v4.9.7.2, this is an llms.txt file, used by LLMs to index the site. # Codes With Pankaj Code with Pankaj - Unlock the world of Coding ## Sitemaps - [XML Sitemap](https://codeswithpankaj.com/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [How to Fetch API Data in Node.js – Step by Step Beginner Tutorial (2026)](https://codeswithpankaj.com/how-to-fetch-api-data-in-node-js-step-by-step-beginner-tutorial-2026/) - How to Fetch API Data in Node.js – Step by Step Tutorial Published by: Pankaj Chouhan | Codes With Pankaj Introduction Fetching data from an API is one of the most important skills for any backend or full-stack developer. In this easy tutorial, you will learn how to fetch data from a public API using - [Exception Handling in Python](https://codeswithpankaj.com/exception-handling-in-python/) - Exception Handling in Python By Pankaj Chouhan | Codes with Pankaj Errors are a normal part of programming. Even experienced developers face them daily. The good news? Python gives us powerful tools to handle these errors gracefully so our programs don’t crash unexpectedly. In this blog, you will learn exception handling in Python step by - [How to Create an LLM (Large Language Model) in Python](https://codeswithpankaj.com/how-to-create-an-llm-large-language-model-in-python/) - How to Create an LLM (Large Language Model) in Python Welcome to Codes With Pankaj! In today’s world of Artificial Intelligence, Large Language Models (LLMs) like ChatGPT have changed everything. Many students and developers want to learn how to create an LLM in Python. Building a full-scale LLM from scratch requires massive data, GPUs, and - [Dense Networks in AI (Fully Connected Neural Networks)](https://codeswithpankaj.com/dense-networks-in-ai-fully-connected-neural-networks/) - Dense Networks in AI (Fully Connected Neural Networks) 1. What is a Neural Network? A neural network is like an AI "brain" that learns patterns from data. It has layers of tiny "neurons" (think of them as smart calculators). Data goes in the front → gets processed layer by layer → answer comes out the - [Python Sets](https://codeswithpankaj.com/python-sets/) - Python Sets What We Cover in This Tutorial We will go through everything you need to know about Python sets, from zero to hero. Here’s the complete list: What is a Set and why it is useful How to create a Set Important properties of Sets Adding elements to a Set Removing elements from a - [Linear Regression with SGD in Machine Learning](https://codeswithpankaj.com/linear-regression-with-sgd-in-machine-learning/) - Linear Regression with SGD in Machine Learning What is Linear Regression? Linear Regression is a basic supervised learning algorithm in machine learning. Its job is to predict a continuous output (target value) from input features (variables). In simple words, it fits a straight line to the data points so that it can predict future values. - [Cross-Validation in Machine Learning](https://codeswithpankaj.com/cross-validation-in-machine-learning-with-python-example/) - Learn what cross-validation is in machine learning, its types, advantages, and a complete Python example with a cross-validation accuracy graph. - [Random Forest in Machine Learning (Simple Explanation + Python Code)](https://codeswithpankaj.com/random-forest-in-machine-learning-simple-explanation-python-code/) - Explore the power of Random Forests in machine learning, including feature importance and real-world applications, with practical Python demonstrations. - [Credit Card Transactions Analysis](https://codeswithpankaj.com/credit-card-transactions-analysis/) - Master credit card transactions analysis with Pandas and Seaborn. Learn data cleaning, fraud detection, and customer insights in this guide - [Python List Tutorial](https://codeswithpankaj.com/python-list-tutorial/) - Python List Tutorial What is a Python List ? A list is a built-in data structure in Python that stores an ordered collection of items. Lists are: Mutable: You can change their contents after creation. Ordered: Items maintain their order unless explicitly modified. Heterogeneous: Can store different data types (e.g., integers, strings, objects). Dynamic: Can - [Inheritance in Python: A Complete Beginner's Guide](https://codeswithpankaj.com/inheritance-in-python-a-complete-beginners-guide/) - Inheritance in Python: A Complete Beginner's Guide Inheritance is one of the most powerful features of object-oriented programming in Python. It allows you to reuse code across classes and build relationships between them, making your code more organized and efficient. In this tutorial, you'll learn everything about inheritance in Python — including its types, use - [PHP MySQL Login System](https://codeswithpankaj.com/php-mysql-login-system/) - Implementing User Authentication Mechanism the PHP Login System with MySQL tutorial Includes all essential features: registration, login, session handling, logout, and password reset. 1. Create the MySQL Table Run this SQL in your MySQL database: CREATE TABLE users ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, - [Hyperparameter Tuning : Advanced Models & Overfitting/Underfitting](https://codeswithpankaj.com/hyperparameter-tuning-advanced-models-overfitting-underfitting/) - Machine Learning Tutorial: Hyperparameter Tuning, Advanced Models & Overfitting/Underfitting 1. Introduction In Machine Learning (ML), choosing the right settings (called hyperparameters) for a model is crucial for good performance. But if you’re not careful, you can end up with overfitting or underfitting. Let’s break it down. 2. What are Models in Machine Learning? A model - [JavaScript Cookies Tutorial for Beginners](https://codeswithpankaj.com/javascript-cookies-tutorial-for-beginners/) - JavaScript Cookies Tutorial for Beginners Welcome to this JavaScript cookies tutorial, your beginner-friendly guide to understanding and using cookies in JavaScript! Cookies let you store small pieces of data in a user’s browser, like user preferences or session information. This tutorial explains cookies, how to create, read, and delete them, and includes practical examples to - [JavaScript Events Tutorial for Beginners: Learn with Examples](https://codeswithpankaj.com/javascript-events-tutorial-for-beginners-learn-with-examples/) - JavaScript Events Tutorial for Beginners: Learn with Examples Welcome to this JavaScript events tutorial, your guide to making web pages interactive! Whether you’re new to coding or brushing up on skills, this beginner-friendly tutorial explains how to use JavaScript events to handle user actions like clicks, hovers, and key presses. With clear examples and a - [JavaScript Functions Tutorial](https://codeswithpankaj.com/javascript-functions-tutorial/) - JavaScript Functions Tutorial This JavaScript functions tutorial is designed for beginners to learn how to create and use functions in JavaScript. With clear examples and practical questions, you’ll master reusable code in no time What is a Function? A function in JavaScript is a reusable block of code that performs a specific task. Think of - [Advanced MySQL Joins](https://codeswithpankaj.com/advanced-mysql-joins/) - Advanced MySQL Joins Introduction MySQL JOINs are essential for querying relational databases, combining data from multiple tables based on related columns. Beyond basic INNER and LEFT JOINs, advanced use cases involve multi-table JOINs, handling edge cases, optimizing for performance, and simulating unsupported JOINs like FULL OUTER JOIN. Setup: Sample Database We’ll create a database for - [JavaScript Regex Tutorial](https://codeswithpankaj.com/javascript-regex-tutorial/) - JavaScript Regex Tutorial Introduction to Regular Expressions Regular Expressions (Regex) are patterns used to match character combinations in strings. In JavaScript, regex is implemented using the RegExp object or regex literals. What You Will Learn: Basics of regex syntax Creating regex in JavaScript Common patterns and modifiers Regex methods in JavaScript (test, exec, match, etc.) - [MySQL Joins Tutorial for Beginners](https://codeswithpankaj.com/mysql-joins-tutorial-for-beginners/) - MySQL Joins This tutorial explains MySQL JOINs, which combine rows from two or more tables based on a related column. We'll cover each type of JOIN with simple examples to help beginners understand. Prerequisites Basic understanding of MySQL and SQL queries. A MySQL database with sample tables (we'll create them below). Setup: Creating Sample Tables - [Fetch Form Data with Java Servlet (Step-by-Step)](https://codeswithpankaj.com/fetch-form-data-with-java-servlet-step-by-step/) - Fetch Form Data with Java Servlet This tutorial guides you through creating a Java Servlet application that collects form data from an HTML page, processes it using a Servlet, and displays the data on another JSP page. We'll use Apache Tomcat as the server and Eclipse IDE for development. Every step is explained in detail - [R Programming Tutorial: Reading and Analyzing CSV Dataset with Data Frames](https://codeswithpankaj.com/r-programming-tutorial-reading-and-analyzing-csv-dataset-with-data-frames/) - R Programming Tutorial: Reading and Analyzing CSV Dataset with Data Frames This tutorial provides a comprehensive guide to reading a CSV dataset file into R, creating a data frame, and performing various data frame operations. The tutorial uses a sample dataset, "sales_data.csv," which contains sales information from different store locations. Step-by-step examples demonstrate how to - [Understanding MySQL String Functions](https://codeswithpankaj.com/understanding-mysql-string-functions/) - Understanding MySQL String Functions Setting Up the Sample Database To illustrate MySQL string functions, we will create a table named indian_users containing sample data with Indian names. This table will serve as the foundation for our examples. Step 1: Create the Table We define a table with columns for id, first_name, last_name, and email. CREATE - [Hierarchical Clustering in Machine Learning](https://codeswithpankaj.com/hierarchical-clustering-in-machine-learning/) - Hierarchical Clustering in Machine Learning : A Comprehensive Guide Introduction Clustering is a cornerstone of unsupervised machine learning, enabling the grouping of similar data points to uncover patterns or structures within unlabeled datasets. Among clustering techniques, hierarchical clustering stands out for its ability to create a hierarchy of clusters, offering a detailed view of data - [Hierarchical Clustering Example with Credit Card Dataset](https://codeswithpankaj.com/hierarchical-clustering-example-with-credit-card-dataset/) - Hierarchical Clustering Example with Credit Card Dataset (Bank Churners) This guide provides a comprehensive, beginner-friendly demonstration of hierarchical clustering using the Credit Card Customers (Bank Churners) dataset, available in CSV format (BankChurners.csv) from Kaggle. The provided Python code performs agglomerative hierarchical clustering, visualizes the clustering process through a dendrogram, and plots the resulting clusters in - [Data Visualization in R with ggplot2](https://codeswithpankaj.com/data-visualization-in-r-with-ggplot2/) - Data Visualization in R with ggplot2 Data visualization is a powerful tool for understanding and communicating insights from data. For students learning data analysis, R's ggplot2 package is an excellent choice due to its flexibility and intuitive syntax. This blog provides a comprehensive, student-friendly introduction to creating stunning visualizations in R using ggplot2. We'll walk - [Python Data Types and Operations](https://codeswithpankaj.com/python-data-types-and-operations/) - Python Data Types and Operations: A Step-by-Step Tutorial This tutorial provides a comprehensive guide to understanding data types, type conversion, user input, and operators in Python. Each topic is explained with clear examples to facilitate learning for beginners. 1. Data Types in Python Python supports several built-in data types that define the kind of value - [R Programming Case Study: Analyzing Student Performance Data with Data Frames and ggplot2](https://codeswithpankaj.com/r-programming-case-study-analyzing-student-performance-data-with-data-frames-and-ggplot2/) - R Programming Case Study : Analyzing Student Performance Introduction R is a powerful programming language for statistical computing and data visualization. In this case study, we will explore a dataset containing student performance metrics, such as scores in math, reading, and writing. Our goal is to analyze the data to uncover insights, such as the - [HTML Tags Tutorial for Beginners](https://codeswithpankaj.com/html-tags-tutorial-for-beginners/) - HTML Tutorial for Beginners - Codes with Pankaj Welcome to the HTML Tutorial for Beginners by Codes with Pankaj! This guide is designed to help you master the basics of HTML (HyperText Markup Language), the foundation of every website. Whether you're new to coding or looking to solidify your skills, this tutorial covers everything from - [PHP Session Tutorial with Login and Logout Example](https://codeswithpankaj.com/php-session-tutorial-with-login-and-logout-example/) - PHP Session Tutorial with Login and Logout Example This tutorial is designed for beginners to understand PHP sessions and implement a simple login and logout system. It includes step-by-step explanations and complete code examples. What is a PHP Session? A PHP session is a way to store information (in variables) to be used across multiple - [PHP File Upload Tutorial: Step-by-Step Guide for Beginners](https://codeswithpankaj.com/php-file-upload-tutorial-step-by-step-guide-for-beginners/) - PHP File Upload Tutorial Uploading files using PHP is a common task in many web applications. In this tutorial, we’ll walk through how to upload files (like images, PDFs, etc.) using HTML and PHP. Prerequisites A basic understanding of HTML and PHP A local server environment like XAMPP, WAMP, or MAMP A code editor (such - [Step-by-Step Tutorial: PHP CRUD Application to Insert and Fetch Data](https://codeswithpankaj.com/step-by-step-tutorial-php-crud-application-to-insert-and-fetch-data/) - Step-by-Step Tutorial: PHP CRUD Application to Insert and Fetch Data create a step-by-step tutorial for building a PHP application that inserts data into a MySQL database using a form and fetches data from it. The example will include a simple form to collect user information (name and email) and display the stored data in a - [How to Connect Node.js with MySQL](https://codeswithpankaj.com/how-to-connect-node-js-with-mysql/) - How to Connect Node.js with MySQL Node.js is a powerful JavaScript runtime that enables developers to build fast and scalable backend applications. When paired with MySQL, a widely-used open-source relational database, you can create robust, data-driven applications. This comprehensive blog walks you through the process of connecting Node.js to MySQL, complete with practical code examples, - [MySQL Date and Time Functions](https://codeswithpankaj.com/mysql-date-and-time-functions/) - MySQL Date and Time Functions Managing temporal data is a crucial part of database operations. MySQL provides a comprehensive set of functions to retrieve, extract, manipulate, and format date and time values. In this guide, we’ll break down these functions step-by-step using real-world examples. 1. Setting Up the Sample Table To demonstrate each function, let’s - [R Programming Data Frame](https://codeswithpankaj.com/r-programming-data-frame/) - 1. Introduction to Data Frames A data frame in R is a two-dimensional, table-like structure where each column can contain different data types (e.g., numeric, character, logical), and each row represents an observation. Data frames are ideal for storing datasets and are widely used in statistical analysis and data science. 2. Creating a Data Frame ## Pages - [Home](https://codeswithpankaj.com/) - Codes with pankaj No Filler, Just Code That WorksClear, focused lessons for a no - fluff learning experience. Book Demo Join whatsapp Channel Technologies You Will Learn Top CategoriesPopular Courses Trusted by Industry Leaders | Recognized by ProfessionalsMy courses help professionals sharpen their skills, tackle real-world challenges, and stay ahead in their careers View All - [Free Tutorials](https://codeswithpankaj.com/free-tutorials/) - Free Tutorials Codes With Pankaj | Free Programming Tutorials for All LevelWelcome to Codes With Pankaj | Programming Tutorials!View More 📚 Free Tutorials C Programming Java SE (Core JAVA) Python SQL Front-end Development Python Interview Questions R Programming Node.js DSA - JAVA DSA - C++ DSA - Python Django Java Interview Questions Express JS Spring - [interview preparation](https://codeswithpankaj.com/interview-preparation/) - Interview Preparation Landing your dream job isn’t just about knowledge - it’s about how confidently and clearly you present it. Our Interview Preparation Program is designed to help you crack technical and HR interviews with ease. - [All Courses](https://codeswithpankaj.com/all-courses/) - All CoursesBuild Real-World SkillsMaster software development with structured courses designed to make you job-ready. Course Program​Popular Courses Welcome to our course catalog! At Codes With Pankaj, we offer practical, job-ready coding courses designed for all levels—beginners to professionals. Learn through hands-on projects, step-by-step tutorials, and industry insights to build skills that matter. The Ultimate Java - [Complete Machine Learning Course Beginner to Advanced (with Python)](https://codeswithpankaj.com/complete-machine-learning-course-beginner-to-advanced-with-python/) - Master Machine Learning with Python in this Complete Beginner to Advanced Course. Learn data preprocessing, supervised & unsupervised learning, model evaluation, deep learning, and real-world ML projects step by step. - [Mastering SQL – From Beginner to Advanced](https://codeswithpankaj.com/mastering-sql-from-beginner-to-advanced/) - Mastering SQL – From Beginner to Advanced with hands-on projects. Learn queries, joins & transactions to build real-world database skills. - [Python Programming Mastery: From Basics to Advanced with Real Projects](https://codeswithpankaj.com/python-programming-mastery-from-basics-to-advanced-with-real-projects/) - Python Programming MasteryFrom Basics to Advanced with Real ProjectsThis course is designed for students, job seekers, and professionals who want to master Python Programming . This course is pure Python (basic → advanced) with everything a learner needs to become a strong Python programmer. Book Demo Learning OutcomesWho Should EnrollCourse StructureDelivery and Features Learning Outcomes - [Artificial Intelligence Course](https://codeswithpankaj.com/artificial-intelligence-course/) - Artificial Intelligence FundamentalsArtificial Intelligence Fundamentals: From Neurons to NLP Book Demo Learning OutcomesWho Should EnrollCourse StructureDelivery and Features Learning Outcomes By the end of this course, participants will be able to: Understand the core concepts of AI and its real-world applications. Explain the architecture and components of artificial neural networks (ANNs) and convolutional neural networks - [Java Certification Course](https://codeswithpankaj.com/java-certification-course/) - Master Java Programming This comprehensive online course prepares learners for Java certification, such as Oracle Certified Professional Java SE Programmer. It covers fundamental and advanced Java programming concepts through 20 structured modules. The course includes video lectures, interactive coding exercises, quizzes, assignments, and a capstone project. Designed for self-paced learning, it provides lifetime access to - [About Us](https://codeswithpankaj.com/about-us/) - About Us Empowering You to Code, Create, and Succeed - Start your journey to master coding with Codes With Pankaj. Our practical, structured, and beginner-friendly approach helps you learn programming effectively, whether you're new to coding or advancing your skills. What We're All About​ Hi, I’m Pankaj Chouhan—software engineer, educator, and founder of Codes With - [Python Variables and Literals](https://codeswithpankaj.com/python-variables-and-literals/) - 1. Python Variables What is a Variable? A variable in Python is like a labeled box where you can store data (e.g., numbers, text, or other values) to use later in your program. You can think of it as a name that points to a value, allowing you to reuse or modify that value easily. - [Python Introduction Programming](https://codeswithpankaj.com/python-programming/) - 1. Python Programming Introduction What is Python? Python is a high-level, versatile programming language known for its simplicity and readability. It’s widely used for web development, data analysis, artificial intelligence, automation, and more. Python’s syntax is clean and English-like, making it an excellent choice for beginners. Why Learn Python? Easy to Learn: Python’s syntax is - [Shop](https://codeswithpankaj.com/shop/) - No products found. - [Blogs](https://codeswithpankaj.com/blogs/) - Blogs Welcome to our blog hub! Stay updated with practical coding tutorials, industry trends, and tech tips from Pankaj Chouhan and the Codes With Pankaj community. Whether you're a beginner or a pro, our blogs offer actionable insights to boost your skills. - [Contact](https://codeswithpankaj.com/contact/) - Get in TouchJoin Open Source Developer Group Contact Us​Get in Touch Mumbai ( Maharashtra ) India info@codeswithpankaj.com​ codeswithpankaj@gmail.com​ +91 9252667322 Keep in Touch​ WhatsApp Community Channel WhatsApp Developer group LinkedIn Group DEV Community Open-Source Group on GitHub Open-Source Group Medium YouTube X (formerly Twitter) Instagram Have Questions?​ Name* Email* Mobile Number* Message You agree to - [Cart](https://codeswithpankaj.com/cart/) - [Checkout](https://codeswithpankaj.com/checkout/) - [Book Your Free Demo - Code With Pankaj](https://codeswithpankaj.com/book-your-free-demo-code-with-pankaj/) - Book Your Free Demo Book a DemoFree Demo Class Ready to transform your future with coding and trading? Join Codes With Pankaj for a FREE Demo Class and dive into our world-class online courses! Powered by Python, R, Julia, and more, our programs—crafted by Pankaj Chouhan, a 10+ year tech guru—turn beginners into job-ready pros. - [Term Conditions](https://codeswithpankaj.com/lp-term-conditions/) - [Pricing & FAQ](https://codeswithpankaj.com/pricing-faq/) - Pricing & FAQLorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo. Become a Member​Membership​ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim. Monthly $49 /Month​ Course Learning Checks​ Course Discussions​ Exercise - [Services](https://codeswithpankaj.com/services/) - [Maintenance Page](https://codeswithpankaj.com/maintenance-page/) - Our Website is Coming soon. We are working to deliver the best experience for our visitors. ## Testimonials - [](https://codeswithpankaj.com/testimonial/3225/) - Codes With Pankaj’s data science programming course is a must! Pankaj Sir’s tips on SQL optimization and R statistical analysis helped me create a sales forecasting model for my company. The projects are super relevant for work! - [](https://codeswithpankaj.com/testimonial/3224/) - Codes With Pankaj delivers the best Python SQL R course! Pankaj Sir’s hands-on approach taught me to use SQL for database management, Python for data cleaning, and R for stats. My inventory analysis project impressed my manager. Highly recommend! - [](https://codeswithpankaj.com/testimonial/1285/) - The blog on Linear Regression was way better than what I saw in paid courses. I liked that it explained the assumptions too — most people skip that. - [](https://codeswithpankaj.com/testimonial/1284/) - I’m not from a tech background, but I’ve been trying to learn data analysis during my free time. This site was a great help. I didn’t feel overwhelmed, and the examples are very clear. - [](https://codeswithpankaj.com/testimonial/1283/) - I found Codes with Pankaj while looking for a simple explanation of standard deviation. Most sites were too technical. Here, I actually understood the concept and could apply it to my dataset in Python. - [](https://codeswithpankaj.com/testimonial/1282/) - I used to rely on YouTube for Python tutorials, but most of them were either too fast or skipped concepts. Codes with Pankaj had everything in one place, especially for topics like descriptive stats and Seaborn. Super helpful during placements. - [](https://codeswithpankaj.com/testimonial/1281/) - I use this site both for self-learning and to guide my students. The real datasets and structured tutorials make teaching easier and more effective. - [](https://codeswithpankaj.com/testimonial/1280/) - I needed a refresher on logistic regression for a client project. Found the perfect explanation with clear code examples here. Bookmarked instantly! - [](https://codeswithpankaj.com/testimonial/1279/) - During my internship, I had to work with large Excel files. Thanks to the Pandas tutorials on this site, I quickly switched to Python and impressed my manager with automated reports - [](https://codeswithpankaj.com/testimonial/1278/) - I was struggling to understand the basics of machine learning until I found Codes with Pankaj. The PCA and Linear Regression guides were a lifesaver before exams ## Categories - [Uncategorized](https://codeswithpankaj.com/category/uncategorized/) - [SQL](https://codeswithpankaj.com/category/sql/) - [Servlet](https://codeswithpankaj.com/category/servlet/) - [R Programming](https://codeswithpankaj.com/category/r-programming/) - [Node JS](https://codeswithpankaj.com/category/node-js/) - [JavaScript](https://codeswithpankaj.com/category/javascript/) - [Machine Learning](https://codeswithpankaj.com/category/machine-learning/) - [Python](https://codeswithpankaj.com/category/python/) - [HTML](https://codeswithpankaj.com/category/html/) - [php](https://codeswithpankaj.com/category/php/) - [AI](https://codeswithpankaj.com/category/ai/) ## Tags - [create llm in python](https://codeswithpankaj.com/tag/create-llm-in-python/) - [python llm from scratch](https://codeswithpankaj.com/tag/python-llm-from-scratch/) - [gpt2 python](https://codeswithpankaj.com/tag/gpt2-python/) - [build large language model](https://codeswithpankaj.com/tag/build-large-language-model/) - [beginner ai tutorial](https://codeswithpankaj.com/tag/beginner-ai-tutorial/) - [hugging face tutorial](https://codeswithpankaj.com/tag/hugging-face-tutorial/)