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! 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
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
The Python Workshop Second Edition
The Python Workshop Second Edition

The Python Workshop Second Edition: Write Python code to solve challenging real-world problems , Second Edition

Arrow left icon
Profile Icon Wade Profile Icon Mario Corchero Jiménez Profile Icon Bird Profile Icon Dr. Lau Cher Han Profile Icon Lee +1 more Show less
Arrow right icon
$51.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (21 Ratings)
Paperback Nov 2022 600 pages 2nd Edition
eBook
$9.99 $41.99
Paperback
$51.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Wade Profile Icon Mario Corchero Jiménez Profile Icon Bird Profile Icon Dr. Lau Cher Han Profile Icon Lee +1 more Show less
Arrow right icon
$51.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (21 Ratings)
Paperback Nov 2022 600 pages 2nd Edition
eBook
$9.99 $41.99
Paperback
$51.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $41.99
Paperback
$51.99
Subscription
Free Trial
Renews at $19.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 Colour 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
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

The Python Workshop Second Edition

Overview

By the end of this chapter, you will be able to simplify mathematical expressions with the order of operations using integers and floats; assign variables and change Python types to display and retrieve user information; apply global functions including len(), print(), and input(); manipulate strings using indexing, slicing, string concatenation, and string methods; apply Booleans and nested conditionals to solve problems with multiple pathways; utilize for loops and while loops to iterate over strings and repeat mathematical operations, and create new programs by combining math, strings, conditionals, and loops.

Note

This chapter covers the fundamentals of the Python language.

Introduction

In this chapter, we will present vital Python concepts; that is, the core elements that everyone needs to know when starting to code. We will cover a breadth of topics while focusing on math, strings, conditionals, and loops. By the end of this chapter, you will have a strong foundation in Python, and you will be able to write significant Python programs as you continue with the rest of this book.

You will start with a very famous developer example, Python as a calculator. In addition to the standard operations of addition, subtraction, multiplication, division, and exponentiation, you will learn integer division and the modulus operator. By using only basic Python, you can outperform most calculators on the market.

Next, you’ll learn about variables. Python is dynamically typed, meaning that variable types are unknown before the code runs. Python variables do not require special initialization. The first variables we will look at will be integers, floats...

Technical requirements

The code files for this chapter are available on GitHub at https://github.com/PacktPublishing/The-Python-Workshop-Second-Edition/tree/main/Chapter01.

In the Preface, we learned how to install Anaconda, which comes with the most updated version of Python and Jupyter Notebook. We are using Jupyter Notebook as the default integrated development environment (IDE) for this book because it is sufficient for your entire Python Workshop journey, including the later chapters on data science.

It’s time to open a Jupyter Notebook and begin our Pythonic journey.

Note

The Python code in most of the chapters of this book will work on almost any IDE that supports Python. Feel free to use Colab notebooks, terminals, Sublime Text, PyCharm, or any other IDE that suits your purposes.

Opening a Jupyter Notebook

To get started with this book, you need to make sure that you have a Jupyter Notebook open. Here are the steps:

  1. Locate and open Anaconda...

Python as a calculator

Python is an incredibly powerful calculator. By leveraging the math library, numpy, and scipy, Python typically outperforms pre-programmed calculators. In later chapters, you will learn how to use the numpy and scipy libraries. For now, we’ll introduce the calculator tools that most people use daily.

Addition, subtraction, multiplication, division, and exponentiation are core operations. In computer science, the modulus operator and integer division are essential as well, so we’ll cover them here.

The modulus operator is the remainder in mathematical division. Modular arithmetic is also called clock arithmetic. For instance, in mod5, which is a modulus of 5, we count 0,1,2,3,4,0,1,2,3,4,0,1... This goes in a circle, like the hands on a clock, which uses mod12.

The difference between division and integer division depends on the language. When dividing the integer 9 by the integer 4, some languages return 2; others return 2.25. In your case...

Strings – concatenation, methods, and input()

So far, you have learned how to express numbers, operations, and variables. But what about words? In Python, anything that goes between single (') or double (") quotes is considered a string. Strings are commonly used to express words, but they have many other uses, including displaying information to the user and retrieving information from a user.

Examples include 'hello', "hello", 'HELLoo00', '12345', and 'fun_characters: !@ #$%^&*('.

In this section, you will gain proficiency with strings by examining string methods, string concatenation, and useful built-in functions, including print() and len(), by covering a wide range of examples.

String syntax

Although strings may use single or double quotes, a given string must be internally consistent. That is, if a string starts with a single quote, it must end with a single quote. The same is true of double quotes...

String interpolation

When writing strings, you may want to include variables in the output. String interpolation includes the variable names as placeholders within the string. There are two standard methods for achieving string interpolation: comma separators and format.

Comma separators

Variables may be interpolated into strings using commas to separate clauses. It’s similar to the + operator, except it adds spacing for you.

Look at the following example, where we add Ciao within a print statement:

italian_greeting = 'Ciao'
print('Should we greet people with', italian_greeting, 
  'in North Beach?')

The output is as follows:

Should we greet people with Ciao in North Beach?

f-strings

Perhaps the most effective way to combine variables with strings is with f-strings. Introduced in Python 3.6, f-strings are activated whenever the f character is followed by quotations. The advantage is that any variable inside curly...

String indexing and slicing

Indexing and slicing are crucial parts of programming. Indexing and slicing are regularly used in lists, a topic that we will cover in Chapter 2, Python Data Structures. In data analysis, indexing and slicing DataFrames is essential to keep track of rows and columns, something you will practice in Chapter 10, Data Analytics with pandas and NumPy.

Indexing

The characters in strings exist in specific locations. In other words, their order counts. The index is a numerical representation of where each character is located. The first character is at index 0, the second character is at index 1, the third character is at index 2, and so on.

Note

We always start at 0 when indexing in computer programming!

Consider the following string:

destination = 'San Francisco'

'S' is in the 0th index, 'a' is in the 1st index, 'n' is in the 2nd index, and so on, as shown in the following table:

...

Slicing

A slice is a subset of a string or other element. A slice could be the whole element or one character, but it’s more commonly a group of adjoining characters.

Let’s say you want to access the fifth through eleventh letters of a string. So, you start at index 4 and end at index 10, as was explained in the Indexing section. When slicing, the colon symbol (:) is inserted between indices, like so: [4:10].

There is one caveat: the lower bound of a slice is always included, but the upper bound is not. So, in the preceding example, if you want to include the 10th index, you must use [4:11].

Now, let’s have a look at the following example for slicing.

Retrieve the fifth through eleventh letters of the destination variable, which you used in the Indexing section:

destination[4:11]

The output is as follows:

Francis’

Retrieve the first three letters of destination:

destination[0:3]

The output is as follows:

San...

Booleans and conditionals

Booleans, named after George Boole, take the values of True or False. Although the idea behind Booleans is rather simple, they make programming much more powerful.

When writing programs, it’s useful to consider multiple cases. If you prompt the user for information, you may want to respond differently, depending on the user’s answer.

For instance, if the user gives a rating of 0 or 1, you may give a different response than a rating of 9 or 10. The keyword here is if.

Programming based on multiple cases is often referred to as branching. Each branch is represented by a different conditional. Conditionals often start with an if clause, followed by else clauses. The choice of a branch is determined by Booleans, depending on whether the given conditions are True or False.

Booleans

In Python, a Boolean class object is represented by the bool keyword and has a value of True or False.

Note

Boolean values must be capitalized in Python...

Loops

Write the first 100 numbers.

There are several assumptions implicit in this seemingly simple command. The first is that the student knows where to start, namely at number 1. The second assumption is that the student knows where to end, at number 100. And the third is that the student understands that they should count by 1.

In programming, this set of instructions may be executed with a loop.

There are three key components to most loops:

  1. The start of the loop
  2. The end of the loop
  3. The increment between numbers in the loop

Python distinguishes between two fundamental kinds of loops: while loops and for loops.

while loops

In a while loop, a designated segment of code repeats, provided that a particular condition is true. When the condition evaluates to false, the while loop stops running. A while loop may print out the first 10 numbers.

You could print the first 10 numbers by implementing the print function 10 times, but using...

Summary

You have gone over a lot of material in this introductory chapter. You have covered math operations, string concatenation and methods, general Python types, variables, conditionals, and loops. Combining these elements allows us to write programs of real value.

Additionally, you have been learning Python syntax. You now understand some of the most common errors, and you’re becoming accustomed to the importance that indentation plays. You’re also learning how to leverage important keywords such as range, in, if, and True and False.

Going forward, you now have the key fundamental skills to tackle more advanced introductory concepts. Although there is much to learn, you have a vital foundation in place to build upon the types and techniques discussed here.

In the next chapter, you will learn about some of the most important Python types, including lists, dictionaries, tuples, and sets.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand and utilize Python syntax, objects, methods, and best practices
  • Explore Python’s many features and libraries through real-world problems and big data
  • Use your newly acquired Python skills in machine learning as well as web and software development

Description

Python is among the most popular programming languages in the world. It’s ideal for beginners because it’s easy to read and write, and for developers, because it’s widely available with a strong support community, extensive documentation, and phenomenal libraries – both built-in and user-contributed. This project-based course has been designed by a team of expert authors to get you up and running with Python. You’ll work though engaging projects that’ll enable you to leverage your newfound Python skills efficiently in technical jobs, personal projects, and job interviews. The book will help you gain an edge in data science, web development, and software development, preparing you to tackle real-world challenges in Python and pursue advanced topics on your own. Throughout the chapters, each component has been explicitly designed to engage and stimulate different parts of the brain so that you can retain and apply what you learn in the practical context with maximum impact. By completing the course from start to finish, you’ll walk away feeling capable of tackling any real-world Python development problem.

Who is this book for?

This book is for professionals, students, and hobbyists who want to learn Python and apply it to solve challenging real-world problems. Although this is a beginner’s course, you’ll learn more easily if you already have an understanding of standard programming topics like variables, if-else statements, and functions. Experience with another object-oriented program, though not essential, will also be beneficial. If Python is your first attempt at computer programming, this book will help you understand the basics with adequate detail for a motivated student.

What you will learn

  • Write efficient and concise functions using core Python methods and libraries
  • Build classes to address different business needs
  • Create visual graphs to communicate key data insights
  • Organize big data and use machine learning to make regression and classification predictions
  • Develop web pages and programs with Python tools and packages
  • Automate essential tasks using Python scripts in real-time execution
Estimated delivery fee Deliver to Taiwan

Standard delivery 10 - 13 business days

$12.95

Premium delivery 5 - 8 business days

$45.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 18, 2022
Length: 600 pages
Edition : 2nd
Language : English
ISBN-13 : 9781804610619
Category :
Languages :

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 Colour 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
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Taiwan

Standard delivery 10 - 13 business days

$12.95

Premium delivery 5 - 8 business days

$45.95
(Includes tracking information)

Product Details

Publication date : Nov 18, 2022
Length: 600 pages
Edition : 2nd
Language : English
ISBN-13 : 9781804610619
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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 $5 each
Feature tick icon Exclusive print discounts
$279.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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 148.97
Learn Python Programming, 3rd edition
$46.99
Mastering Python 2E
$49.99
The Python Workshop Second Edition
$51.99
Total $ 148.97 Stars icon
Banner background image

Table of Contents

15 Chapters
Chapter 1: Python Fundamentals – Math, Strings, Conditionals, and Loops Chevron down icon Chevron up icon
Chapter 2: Python Data Structures Chevron down icon Chevron up icon
Chapter 3: Executing Python – Programs, Algorithms, and Functions Chevron down icon Chevron up icon
Chapter 4: Extending Python, Files, Errors, and Graphs Chevron down icon Chevron up icon
Chapter 5: Constructing Python – Classes and Methods Chevron down icon Chevron up icon
Chapter 6: The Standard Library Chevron down icon Chevron up icon
Chapter 7: Becoming Pythonic Chevron down icon Chevron up icon
Chapter 8: Software Development Chevron down icon Chevron up icon
Chapter 9: Practical Python – Advanced Topics Chevron down icon Chevron up icon
Chapter 10: Data Analytics with pandas and NumPy Chevron down icon Chevron up icon
Chapter 11: Machine Learning Chevron down icon Chevron up icon
Chapter 12: Deep Learning with Python Chevron down icon Chevron up icon
Chapter 13: The Evolution of Python – Discovering New Python Features Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(21 Ratings)
5 star 71.4%
4 star 19%
3 star 4.8%
2 star 4.8%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




N/A Jan 30, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Feefo Verified review Feefo
N/A Jan 29, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Feefo Verified review Feefo
Tiny Apr 06, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Learning Python can be a blocker to success with DevSecOps. “The Python Workshop, 2nd ed” (Packt, 2022) by Corey Wade, Mario Corchero Jimenez, Andrew Bird, Dr. Lau Cher Han, and Graham Lee covers every part of Python a new user could possibly hope to know. The book provides extensive code samples, small exercises to work through, and more detailed activities to explore coding options. Starting with basic Python fundamentals, the book works through advanced implementation with libraries and ends with thoughts about implementing ML structures, including data analytics. Again, anything a Python user could want, either from a new start point or a reference manual to keep on the desk. Recommend for anyone using Python. No sections are provided in the reference; instead, chapters are listed from 1-13 with gradually advancing topics. The first four chapters cover the basics of developing in Python, the next five are about software development and the last four advanced data analytics. Starting with the fundamentals, the frame introduces Jupyter Notebook as one of the ways to sequentially implement Python. The standards for basic coding, assigning variables, using variables, and developing conditional statements are all included. These first four sections include 70 exercises and 13 activities to test individual abilities and ensure concepts are understood. The middle sections are the meat of Python expressions. Classes, methods, and modules are all covered as well as how to import previous Python libraries from others to shortcut code. Also included is an excellent section on coding collaboratively through using Git and merge requests. Most texts skip this function, and the inclusion is a strong addition to the overall value. The authors briefly touch on other Python forms, such as Cython for using C+ wrappers and PyPy for Just-in-Time compilation through Python. Another 58 exercises are included, and ten more activities to ensure all the presented topics continue to be understood. The last section touches on the cutting edge of Python development by introducing machine learning and data analytics topics. The text references pandas and NumPy as the primary libraries to access these tools and provides a number of samples to best implement. Different machine-learning types like K-nearest neighbors, decision trees, random forests and naive Bayes are all presented and explained as methods to reach one’s ML goals. One strong point in reference books is this ability to not just stop at the basics but show the most advanced options possible. In personal development work, my company offers the toolbox, the blueprints to use the toolbox, and then shows what our artists can deliver with that toolbox. This reference follows a similar path. This last section offers 41 exercises and four activities to practice ML skills. Though offering a clear path from beginning to end, the book moves fast. Covering all this material in an individual text is a lot, and the reader will most likely be using Stack Overflow and community groups at points if they become stuck on the various activities. An excellent reference, this book could easily have been split into 3 manuals of equivalent length to really dig into the various pieces. However, this does not detract from the book’s value as an initial reference or a continuing reference to Python’s capabilities. Overall, “The Python Workshop, 2nd ed” (Packt, 2022) is an excellent reference and one I am happily including in the stack of manuals on my desk. I even found using the exercises and activities a good refresher for my own skills. Whether one is just starting their Python coding journey or looking for a refresher, I recommend purchasing and frequently referencing this work for anyone currently involved with Python at any level or just hoping to get started with this great language.
Amazon Verified review Amazon
Ryan Zurrin Apr 08, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The 2nd edition of "The Python Workshop" by Corey Wade, Mario Corchero Jimenez, Andrew Bird, Dr. Lau Cher Han, and Graham Lee builds upon the phenomenal success of the first edition, further solidifying its place as a premier resource for learning Python programming. Published by Packt Publishing, this updated edition incorporates the latest developments in the Python ecosystem, ensuring that readers stay current with the rapidly evolving programming world.Retaining its renowned pedagogical approach, the 2nd edition enhances the learning experience with updated examples and exercises, reflecting recent advancements and industry trends. Newcomers and seasoned programmers alike will appreciate the revised content, which remains clear, concise, and engaging. The progressively challenging exercises provide ample opportunity to practice and hone skills, boosting readers' confidence in their abilities.This edition expands its coverage of Python topics, delving deeper into machine learning, web development, and data analysis while incorporating syntax, libraries, and best practices updates. Thanks to the authors' invaluable insights and expertise, readers will find themselves well-equipped to tackle diverse programming challenges and create efficient, future-proof code."The Python Workshop" 2nd edition emphasizes the importance of collaboration and problem-solving, fostering a supportive and innovative learning environment. Teamwork remains a central theme, reflecting the programming community's spirit and helping readers develop essential interpersonal skills.In summary, the 2nd edition of "The Python Workshop" by Corey Wade, Mario Corchero Jimenez, Andrew Bird, Dr. Lau Cher Han, and Graham Lee raises the bar even higher for Python learning resources. With its comprehensive content, clear writing, engaging exercises, and expanded coverage of relevant topics, this book sets a new standard for beginners and experienced programmers. Take advantage of the opportunity to elevate your Python skills with this essential guide!
Amazon Verified review Amazon
Kushal Feb 23, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The Python Workshop is a must-read book for anyone who wants to learn Python for data analysis. This book covers everything you need to know about data analysis in Python, from the basics of Python programming to more advanced topics like data wrangling, data cleaning, and data visualization. The book is well-structured and easy to follow, with plenty of code examples and real-world datasets to help you understand the concepts.One of the best things about this book is the way it teaches you how to work with real-world data. The author shows you how to load data from different sources, including CSV files, Excel spreadsheets, SQL databases, and web APIs. He then walks you through the process of cleaning and transforming the data, using Pandas, so that it is ready for analysis.The book also covers data visualization, which is an essential part of data analysis. You will learn how to create various types of plots and charts using Matplotlib and Seaborn, two popular Python libraries for data visualization.Overall, The Python Workshop is an excellent book for anyone who wants to learn Python for data analysis. It is well-written, comprehensive, and easy to follow, making it a great resource for both beginners and experienced programmers. Whether you are a data scientist, analyst, or engineer, this book will teach you everything you need to know about Python for data analysis. 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