Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Cracking the Data Science Interview

You're reading from  Cracking the Data Science Interview

Product type Book
Published in Feb 2024
Publisher Packt
ISBN-13 9781805120506
Pages 404 pages
Edition 1st Edition
Languages
Authors (2):
Leondra R. Gonzalez Leondra R. Gonzalez
Profile icon Leondra R. Gonzalez
Aaren Stubberfield Aaren Stubberfield
Profile icon Aaren Stubberfield
View More author details

Table of Contents (21) Chapters

Preface Part 1: Breaking into the Data Science Field
Chapter 1: Exploring Today’s Modern Data Science Landscape Chapter 2: Finding a Job in Data Science Part 2: Manipulating and Managing Data
Chapter 3: Programming with Python Chapter 4: Visualizing Data and Data Storytelling Chapter 5: Querying Databases with SQL Chapter 6: Scripting with Shell and Bash Commands in Linux Chapter 7: Using Git for Version Control Part 3: Exploring Artificial Intelligence
Chapter 8: Mining Data with Probability and Statistics Chapter 9: Understanding Feature Engineering and Preparing Data for Modeling Chapter 10: Mastering Machine Learning Concepts Chapter 11: Building Networks with Deep Learning Chapter 12: Implementing Machine Learning Solutions with MLOps Part 4: Getting the Job
Chapter 13: Mastering the Interview Rounds Chapter 14: Negotiating Compensation Index Other Books You May Enjoy

Using variables, data types, and data structures

In Python, variables are the building blocks of any code. It’s simply a value of some given type assigned to an object. For example, if I set a variable called x equal to 10, the variable x now holds that value (until it is changed). In short, variables are used to store data. Unlike some other programming languages, such as Java, the variable type does not need explicit declaration in Python. The declaration or type of a variable is determined automatically when you assign a value to it (although you can and should change data types as needed). There are several built-in data types in Python. Here are some common ones:

  • Numeric types: There are numerous types of numeric data types, including int (integers), float (floating-point numbers), and complex (complex numbers). Numeric variables in Python are used to store numerical data:
    • Integers represent whole numbers without any fractional or decimal part. They can be positive...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}