Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
AI-Assisted Programming for Web and Machine Learning
AI-Assisted Programming for Web and Machine Learning

AI-Assisted Programming for Web and Machine Learning: Improve your development workflow with ChatGPT and GitHub Copilot

Arrow left icon
Profile Icon Christoffer Noring Profile Icon Ajit Jaokar Profile Icon Ayşe Mutlu Profile Icon Marina Fernandez Profile Icon Anjali Jain +1 more Show less
Arrow right icon
AU$45.99 AU$66.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (9 Ratings)
Paperback Aug 2024 602 pages 1st Edition
eBook
AU$36.99 AU$52.99
Paperback
AU$45.99 AU$66.99
Subscription
Free Trial
Renews at AU$24.99p/m
Arrow left icon
Profile Icon Christoffer Noring Profile Icon Ajit Jaokar Profile Icon Ayşe Mutlu Profile Icon Marina Fernandez Profile Icon Anjali Jain +1 more Show less
Arrow right icon
AU$45.99 AU$66.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9 (9 Ratings)
Paperback Aug 2024 602 pages 1st Edition
eBook
AU$36.99 AU$52.99
Paperback
AU$45.99 AU$66.99
Subscription
Free Trial
Renews at AU$24.99p/m
eBook
AU$36.99 AU$52.99
Paperback
AU$45.99 AU$66.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

AI-Assisted Programming for Web and Machine Learning

Introduction

In November 2022, ChatGPT arrived from seemingly nowhere. Over time, ChatGPT gained momentum, gradually evolving into a widely embraced tool. Eventually, millions actively incorporated ChatGPT into their workflows, leveraging its capabilities for generating insights, summarizing text, crafting code, and more.

Its arrival changed many people’s workflow and improved it a lot in tasks like quickly understanding large bodies of text, writing emails, and more. Here you are, having bought this book, and hoping that you can learn how to use an AI tool like ChatGPT or GitHub Copilot to make you more efficient. That’s exactly the mission of this book: to teach you not only how to use these two AI tools but also to be able to apply them across various problem domains.

Before we start solving problems using an AI assistant, let’s back up a bit; how did we get here? ChatGPT just didn’t arrive out of nowhere, right?

How ChatGPT came to be, from NLP to LLMs

To tell the story of how we got here, to AI tools like ChatGPT, powered by large language models (LLMs), let’s first cover natural language processing (NLP).

NLP is a field of computer science, artificial intelligence, and computational linguistics. It’s concerned with the interactions between computers and human language, and how to program computers to process and analyze large amounts of natural language data. NLP is a hugely interesting area that has a range of useful applications in the real world. Here are some:

  • Speech recognition: If you have a modern smartphone, you’ve likely interacted with voice assistants like Siri or Alexa, for example.
  • Machine translation: Google Translate is perhaps what comes to mind when thinking of machine translation, the ability to translate from one language to another automatically.
  • Sentiment analysis: A very useful area is understanding the sentiment in areas like social media, for example. Companies want to know how brands are perceived; e-commerce wants to quickly understand product reviews to boost their business.
  • Chatbots and virtual assistants: You’ve likely seen chatbots being integrated on web pages even before the advent of ChatGPT. These chatbots can answer simpler questions, and companies have them to ensure you quickly get an answer to simpler questions and provide a more natural experience than an FAQ page, among other usage areas.
  • Text summaries: Search engines come to mind again when thinking about text summaries. You might have seen how, when you use search engines like Bing or Google, it’s able to summarize a page and show the summary together with the link to the page in a search result page. As a user, you get a better understanding of what link to click.
  • Content recommendation: This is another important area used by a variety of different domains. E-commerce uses this to present products you’re likely to be interested in, Xbox uses this to recommend what games to play and buy, and video streaming services display content you might want to watch next.

As you can see already, with NLP, both companies and end users benefit greatly from adopting it.

The rise of LLMs

How did we evolve from NLP to LLMs, then? Initially, NLP used rule-based systems and statistical methods underneath. This approach, although working well for some tasks, struggled with human language.

This changed for the better when deep learning, a subset of machine learning, was introduced to NLP, and we got models like RNN, recurrent neural networks, and transformer-based models, capable of learning patterns in data. The result was a considerable improvement in performance. With transformer-based models, we’re starting to lay the foundations of large language models.

LLMs are a type of transformer model. They can generate human-like text and, unlike NLP models, they’re good at a variety of tasks without needing specific training data. How is this possible, you ask? The answer is a combination of improved architecture, a vast increase in computational power, and gigantic datasets.

LLMs rest on the idea that a large enough neural network can learn to do anything, given enough data and compute. This is a paradigm shift in how we program computers. Instead of writing code, we write prompts and let the model do the rest.

GPT models

There are many different types of LLMs out there, but let’s focus on GPT for a second, a type of LLM on which the book’s chosen tools are based (even if GitHub Copilot uses a specific subset known as Codex).

There have been several different versions developed in the last few years. Here are some models developed by the company OpenAI:

  • GPT-1: The first one, with 117 million parameters using transformer architecture.
  • GPT-2: This model has 1.5 billion parameters and is able to generate coherent and relevant text.
  • GPT-3: This model has 175 billion parameters and is considerably better than its predecessor with features like answering questions, fiction generation, and even writing code.
  • GPT-4: This model has been quoted to have 1.76 trillion parameters.
  • The number of parameters allows the model to understand more nuanced and coherent text. It should also be said that the larger the model, the larger the computational resources that are needed to train it.
  • ChatGPT recently switched to GPT-4 and the difference compared to GPT-3 is significant.

How LLMs are better

Now that we have a better understanding of how LLMs came to be and where they came from, what makes LLMs great? What are some good examples of why we really should adopt AI assistants based on LLMs?

Because LLMs are bigger and more advanced, there are some areas in which they clearly outperform traditional NLP models:

  • Context: LLMs can understand not just the recent input but can produce responses based on a longer conversation.
  • Few-shot learning: To perform a task, LLMs usually just need a few examples to produce a correct response. This should be contrasted with NLP models, which usually use a large amount of task-specific training data to perform properly.
  • Performance: LLMs are better than traditional NLP models in areas like translations, questions, and summarization.

It’s worth mentioning that LLMs aren’t perfect; they do generate incorrect responses and can sometimes make up responses, also known as hallucinations. It’s our hope though that by reading this book, you will see the advantages of using LLM-based AI assistants and you will feel the pros clearly outweigh the cons.

The new paradigm, programming with natural language

Probably the biggest game changer with using LLM-based AI assistants is that you’re able to interact with them using nothing but natural language. There’s no need to learn a programming language to get the response you need. This change constitutes a new paradigm in interacting with AI. We’re moving away from writing in specific languages for producing apps, data retrieval, or even how we produce images, presentations, and more to express at a high level what we want through a prompt.

Here is an example of things that are now possible to do using prompts, where it before needed considerably more effort:

  • Programming: With a prompt, you express what app you want to build or what changes you want to make with the code.
  • Image generation: Where you before needed a designer or artist, you can now generate via prompts.
  • Videos: There are tools out there that, once given a prompt, will generate videos where an avatar reads out your written text.
  • Text tasks: LLM-based AI assistants can generate emails, summarize large bodies of text, author interview ads, and much more; anything you can imagine with text really.

All these application areas mentioned above make it clear that LLM-based AI tools are useful not only to programmers and data scientists but numerous different professions.

Challenges and limitations

Is everything working perfectly at this point? AI assistants aren’t able to replace “you” just yet, and should be considered more of a “thinking partner.” Microsoft has even, through conscious naming, called their AI assistants “Copilots” where you’re clearly the pilot that sets out the direction. These tools can generate text and other modalities in seconds, but you need to verify the correctness. Often, the first response you get from a tool is something you need to iterate over. The good news is that it just takes seconds to redo the instruction.

An important thing to realize about AI assistants is that the more skilled you are at a certain topic, the more intelligent questions you can ask of it, and you’ll be able to better assess the correctness of the response.

About this book

The goals of this book are to:

  • Introduce you to the new paradigm of programming with natural language.
  • Provide you with the tools to get started using AI assistants.
  • Empower you to use AI assistants effectively and responsibly by teaching you prompt engineering and specifically a set of prompting strategies (covered in Chapter 2) and some sound practices (covered in Chapter 8).

We believe that with these tools, prompting strategies, and practices, you will be able to use AI assistants effectively and responsibly to augment your work and increase your productivity.

Who this book is for

This book is for professional developers within both the web and machine learning space. It is for those who want to learn how to use AI assistants like GitHub Copilot and ChatGPT to augment their work and increase their productivity.

Evolution of programming languages

Programming has gone through a series of changes and paradigm shifts throughout history:

  • Ada Lovelace wrote the first algorithm for a machine, the Analytical Engine, in the 1840s. Lovelace is considered the first computer programmer and the first to recognize that the machine had applications beyond pure calculation.
  • In the 1940s, the first programmable computers were created. These computers were programmed using punch cards. One such computer was the Harvard Mark I, which was used to calculate the trajectory of artillery shells. Also, Bombe is worth mentioning, which was used to crack the Enigma code during World War II and was instrumental in the Allies winning the war.
  • In the 1950s, the first high-level programming languages were created. This time period saw the birth of FORTRAN, LISP, COBOL, and ALGOL. Some of these languages are still in use today, especially in banking systems, scientific computing, and defense.
  • In the 1970s, the first object-oriented programming languages were created. The 1970s meant we got Smalltalk, C++, and Objective-C. Except for Smalltalk, these languages are heavily in use today.
  • In the 1990s, the first functional programming languages were created. The 1990s gave us Haskell, OCaml, and Scala. The benefit of these languages is that they encourage immutability and pure functions, which makes them easier to reason about and test.
  • In the 2000s, the first declarative programming languages were created. Declarative programming languages are used to describe what you want to do, rather than how you want to do it. The 2000s gave us SQL, HTML, and CSS.
  • In the 2010s, the first low-code and no-code platforms were created. These platforms opened programming to a wider audience, and allowed anyone, regardless of technical background, to build applications.
  • In the 2020s, the first AI assistants were created that leveraged natural language. If you can write a sentence, you can write code.

In summary, programming has gone through a series of changes and paradigm shifts. Prompt-first programming is the latest paradigm shift and mastering it will be key to staying relevant in the immediate future.

Looking ahead

If changes and paradigm shifts took years or decades in the past, they now take months or even weeks. We’re moving toward a new world at breakneck speed.

There’s reason to be excited, as we’re moving faster than before, but as always, we should exercise caution. We should be aware of the risks and the dangers of using these tools irresponsibly, but most of all we should be aware of the opportunities.

As Alan Kay once said, “The best way to predict the future is to invent it.”

How to use this book

We believe the best way to use this book is to follow the chapters in order.

Chapter 2, with the prompting strategies, is the most important chapter in the book. These patterns and strategies are referred to throughout the book and are the foundation for how to use AI assistants effectively and responsibly.

The book is written in the following format:

  • Introduction: The first chapter aims to provide you with an overview of what this book is about, its goals, and who it is for.
  • Prompt strategy: The idea is to lay the foundation on how to break down problems within the domains of data science and web development. From this chapter, you will learn strategies you can adopt for your own problems.
  • Tools of the trade: The third chapter introduces you to our tools, GitHub Copilot and ChatGPT, what they are, how they work, and how to install them. However, the book is written in such a way that you can take any of the prompts we suggest and feed those into any AI assistant, and get a similar experience.
  • The remaining chapters of the book show how we use the prompt strategies from Chapter 2 and apply them to various domains from web development to data science and machine learning.

Happy reading!

Join our community on Discord

Join our community’s Discord space for discussions with the author and other readers:

https://packt.link/aicode

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Utilize prompts to enhance frontend and backend web development
  • Develop prompt strategies to build robust machine learning models
  • Use GitHub Copilot for data exploration, maintaining existing code bases, and augmenting ML models into web applications

Description

AI-Assisted Programming for Web and Machine Learning shows you how to build applications and machine learning models and automate repetitive tasks. Part 1 focuses on coding, from building a user interface to the backend. You’ll use prompts to create the appearance of an app using HTML, styling with CSS, adding behavior with JavaScript, and working with multiple viewports. Next, you’ll build a web API with Python and Flask and refactor the code to improve code readability. Part 1 ends with using GitHub Copilot to improve the maintainability and performance of existing code. Part 2 provides a prompting toolkit for data science from data checking (inspecting data and creating distribution graphs and correlation matrices) to building and optimizing a neural network. You’ll use different prompt strategies for data preprocessing, feature engineering, model selection, training, hyperparameter optimization, and model evaluation for various machine learning models and use cases. The book closes with chapters on advanced techniques on GitHub Copilot and software agents. There are tips on code generation, debugging, and troubleshooting code. You’ll see how simpler and AI-powered agents work and discover tool calling.

Who is this book for?

Experienced developers new to GitHub Copilot and ChatGPT can discover the best strategies to improve productivity and deliver projects quicker than traditional methods. This book is ideal for software engineers working on web or machine learning projects. It is also a useful resource for web developers, data scientists, and analysts who want to improve their efficiency with the help of prompting. This book does not teach web development or how different machine learning models work.

What you will learn

  • Speed up your coding and machine learning workflows with GitHub Copilot and ChatGPT
  • Use an AI-assisted approach across the development lifecycle 
  • Implement prompt engineering techniques in the data science lifecycle
  • Develop the frontend and backend of a web application with AI assistance 
  • Build machine learning models with GitHub Copilot and ChatGPT 
  • Refactor code and fix faults for better efficiency and readability 
  • Improve your codebase with rich documentation and enhanced workflows 
Estimated delivery fee Deliver to Australia

Economy delivery 7 - 10 business days

AU$19.95

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 30, 2024
Length: 602 pages
Edition : 1st
Language : English
ISBN-13 : 9781835086056
Vendor :
OpenAI
Category :
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Estimated delivery fee Deliver to Australia

Economy delivery 7 - 10 business days

AU$19.95

Product Details

Publication date : Aug 30, 2024
Length: 602 pages
Edition : 1st
Language : English
ISBN-13 : 9781835086056
Vendor :
OpenAI
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
AU$249.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts
AU$349.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 136.97 197.97 61.00 saved
Generative AI Application Integration Patterns
AU$47.99 AU$68.99
Python Feature Engineering Cookbook
AU$42.99 AU$61.99
AI-Assisted Programming for Web and Machine Learning
AU$45.99 AU$66.99
Total AU$ 136.97 197.97 61.00 saved Stars icon

Table of Contents

24 Chapters
It’s a New World, One with AI Assistants, and You’re Invited Chevron down icon Chevron up icon
Prompt Strategy Chevron down icon Chevron up icon
Tools of the Trade: Introducing Our AI Assistants Chevron down icon Chevron up icon
Build the Appearance of Our App with HTML and Copilot Chevron down icon Chevron up icon
Style the App with CSS and Copilot Chevron down icon Chevron up icon
Add Behavior with JavaScript Chevron down icon Chevron up icon
Support Multiple Viewports Using Responsive Web Layouts Chevron down icon Chevron up icon
Build a Backend with Web APIs Chevron down icon Chevron up icon
Augment Web Apps with AI Services Chevron down icon Chevron up icon
Maintaining Existing Codebases Chevron down icon Chevron up icon
Data Exploration with ChatGPT Chevron down icon Chevron up icon
Building a Classification Model with ChatGPT Chevron down icon Chevron up icon
Building a Regression Model for Customer Spend with ChatGPT Chevron down icon Chevron up icon
Building an MLP Model for Fashion-MNIST with ChatGPT Chevron down icon Chevron up icon
Building a CNN Model for CIFAR-10 with ChatGPT Chevron down icon Chevron up icon
Unsupervised Learning: Clustering and PCA Chevron down icon Chevron up icon
Machine Learning with Copilot Chevron down icon Chevron up icon
Regression with Copilot Chat Chevron down icon Chevron up icon
Regression with Copilot Suggestions Chevron down icon Chevron up icon
Increasing Efficiency with GitHub Copilot Chevron down icon Chevron up icon
Agents in Software Development Chevron down icon Chevron up icon
Conclusion Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Most Recent
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(9 Ratings)
5 star 88.9%
4 star 11.1%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Most Recent

Filter reviews by




Banachan Oct 15, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book gives a great progression of the topics in regard to LLMs and use cases. It starts with the basic principles and premises and goes into more details chapter by chapter. So if you want a broad landscape perspective of use LLMs especially on how it is applied in chats, assistants, and used to help generate regression, classification unsupervised, and even deep learning models, etc. this is a good book to get and utilize for your purposes. It gives a good grounding on the world of LLMs and how to apply it by walking you through its practical applications and approaches.While not as deep technically as I would have hoped, it gives a good grounding on what to expect for such a new field in AI. Concepts on how apply LLMs in prompting, front and back end web app dev using assistants, data analysis are covered in enough detail. If you're already familiar with traditional classification and regressions modeling, it also covers how do it with LLMs. It blends both the traditional and newer methods to give you a sense on how to leverage what you already know with LLM based approaches. The code generation assistants make for a good exercise to accelerate your machine learning coding efforts.In all these of course, you need to have a good understanding of machine learning to begin with, as depending 100% on AI is not a panacea for good machine learning modeling expertise to apply in the real world. A small bonus content is that the book also covers Agentic processes in software development. Since this area is so new (as of this writing), a good basic introduction on the concepts were discussed.Overall, a good read providing a good virtual roadmap on how to do traditional machine learning using more cutting -edge tools and assistants. Highly recommended book and must read for those getting into the LLM field.
Amazon Verified review Amazon
N/A Oct 14, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book reference for developers who want understanding utility of developing software with generative artificial intelligence.
Feefo Verified review Feefo
saandeep sreerambatla Oct 02, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a developer curious about leveraging AI in my workflow, "AI Assisted Programming for Web and Machine Learning" was a refreshing deep dive into the world of AI-assisted coding. Initially unsure of how tools like GitHub Copilot or ChatGPT would mesh with my development process, the book's clear, hands-on tutorials made the transition seamless.What I appreciated most was the practical application—building full web apps while integrating machine learning models, all enhanced by AI-generated code. The focus on real-world scenarios helped me see how these tools could drastically boost productivity.The section on prompt engineering is particularly insightful, teaching you how to effectively guide AI for more precise outcomes. This book doesn’t just show you how to use AI but pushes you to critically evaluate the results and refine your approach. I found the machine learning sections equally useful, especially for data exploration and model optimization, making it relevant for both web developers and data scientists alike.For anyone wondering if AI tools can fit into their workflow, this book is an essential guide. It's thorough but accessible, designed to give both beginners and seasoned developers the skills to harness AI and improve efficiency across projects.
Amazon Verified review Amazon
Charlie Wright Oct 01, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A simple, easy to understand prompt engineering flow as outlined early in the book guides the way to more in depth ideas. The writing is clear and logical in the way it progresses from one point the the next taking you along step by step in understanding the material.
Amazon Verified review Amazon
Sharan Shirodkar Sep 23, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A comprehensive resource for developers seeking to enhance their web and machine learning projects with AI-driven tools. Highly recommended
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela