Details

Job Ready Python


Job Ready Python


1. Aufl.

von: Haythem Balti, Kimberly A. Weiss

25,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 12.10.2021
ISBN/EAN: 9781119817406
Sprache: englisch
Anzahl Seiten: 688

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Get ready to take on Python with a practical and job-focused guide </b></p> <p><i>Job Ready Python </i>offers readers a straightforward and elegant approach to learning Python that emphasizes hands-on and employable skills you can apply to real-world environments immediately. </p> <p>Based on the renowned mthree Global Academy and Software Guild training program, this book will get you up to speed in the basics of Python, loops and data structures, object-oriented programming, and data processing. You’ll also get: </p> <ul> <li>Thorough discussions of Extract, Transform, and Load (ETL) scripting in Python </li> <li>Explorations of databases, including MySQL, and MongoDB—all commonly used database platforms in the field </li> <li>Simple, step-by-step approaches to dealing with dates and times, CSV files, and JSON files </li> </ul> <p>Ideal for Python newbies looking to make a transition to an exciting new career, <i>Job Ready Python</i> also belongs on the bookshelves of Python developers hoping to brush up on the fundamentals with an authoritative and practical new handbook.  </p>
<p>About the Authors v</p> <p>About the Technical Writer v</p> <p>About the Technical Editor v</p> <p>Acknowledgments vi</p> <p>Introduction xvii</p> <p> </p> <p><b>Part I: Getting Started with Python 1</b></p> <p><b>Lesson 1: Setting Up a Python Programming Environment 3</b></p> <p>Python Overview 4</p> <p>Using Replit Online 4</p> <p>Getting Started with Jupyter Notebook 14</p> <p>A Quick Look at Visual Studio Code 21</p> <p>Using Python from the Command Line 24</p> <p>Summary 26</p> <p>Exercises 26</p> <p><b>Lesson 2: Understanding Programming Basics 29</b></p> <p>The Future of Computer Programming 30</p> <p>Programming Languages 32</p> <p>Data Types and Variables 37</p> <p>Variables 40</p> <p>Constants 44</p> <p>Summary 46</p> <p>Exercises 46</p> <p><b>Lesson 3: Exploring Basic Python Syntax 49</b></p> <p>Using with Single- Line Commands 51</p> <p>Using Semicolons 52</p> <p>Continuing with Backslash 54</p> <p>Working with Case Structure 55</p> <p>Adding Comments 56</p> <p>Using the Input Function 57</p> <p>Storing Input 59</p> <p>Understanding Variable Types 61</p> <p>Displaying Variable Values 62</p> <p>Naming Variables 64</p> <p>Summary 65</p> <p>Exercises 65</p> <p><b>Lesson 4: Working with Basic Python Data Types 69</b></p> <p>Review of Data Types 70</p> <p>Number Data Types 70</p> <p>Identifying Data Types 72</p> <p>Mathematical Operations 74</p> <p>Pemdas 77</p> <p>Common Math Functions 81</p> <p>Math Library Functions 83</p> <p>Using Numbers with User Input 86</p> <p>Boolean Types and Boolean Operations 89</p> <p>Logic Operations 92</p> <p>Comparative Operators 95</p> <p>Summary 96</p> <p>Exercises 97</p> <p><b>Lesson 5: Using Python Control Statements 101</b></p> <p>Control Structures Review 101</p> <p>Understanding Sequence Control Structure 102</p> <p>Understanding Selection Statements 103</p> <p>Understanding Conditional Statements 106</p> <p>If- Else Statements 108</p> <p>Working with Nested Conditions 109</p> <p>Embedding Conditions 112</p> <p>Summary 114</p> <p>Exercises 114</p> <p><b>Lesson 6: Pulling It All Together: Income Tax Calculator 117</b></p> <p>Getting Started 118</p> <p>Step 1: Gather Requirements 118</p> <p>Step 2: Design the Program 120</p> <p>Step 3: Create the Inputs 120</p> <p>Step 4: Calculate the Taxable Income 122</p> <p>Step 5: Calculate the Tax Rate 124</p> <p>Step 6: Update the Application 133</p> <p>Step 7: Address the UI 136</p> <p>On Your Own 139</p> <p>Summary 139</p> <p><b>Part II: Loops and Data Structures 141</b></p> <p><b>Lesson 7: Controlling Program Flow with Loops 143</b></p> <p>Iterations Overview 144</p> <p>The Anatomy of a Loop 144</p> <p>The for Loop 145</p> <p>The while Loop 146</p> <p>for vs. while Loops 149</p> <p>Strings and String Operations 151</p> <p>Iterating through Strings 164</p> <p>Summary 167</p> <p>Exercises 167</p> <p><b>Lesson 8: Understanding Basic Data Structures: Lists 173</b></p> <p>Data Structure Overview—Part 1 174</p> <p>Creating Lists 175</p> <p>Determining List Length 179</p> <p>Working with List Indexes 179</p> <p>Negative Indexing in Lists 182</p> <p>Slicing Lists 184</p> <p>Adding Items to a List 189</p> <p>Inserting List Items 190</p> <p>Removing List Items 192</p> <p>Concatenating Lists 196</p> <p>List Comprehension 197</p> <p>Sorting Lists 199</p> <p>Copying Lists 200</p> <p>Summary 202</p> <p>Exercises 202</p> <p><b>Lesson 9: Understanding Basic Data Structures: Tuples 205</b></p> <p>Tuples and Tuple Operations 206</p> <p>Tuple Index Values 209</p> <p>Negative Indexing in Tuples 210</p> <p>Slicing Tuples 212</p> <p>Immutability 213</p> <p>Concatenating Tuples 216</p> <p>Searching Tuples 217</p> <p>Summary 218</p> <p>Exercises 219</p> <p><b>Lesson 10: Diving Deeper into Data Structures: Dictionaries 223</b></p> <p>Data Structure Overview— Part 2 224</p> <p>Getting Started with Dictionaries 224</p> <p>Generating a Dictionary 227</p> <p>Retrieving Items from a Dictionary 230</p> <p>Using the keys() Method 233</p> <p>Using the items() Method 234</p> <p>Reviewing the keys(), values(), and items() Methods 236</p> <p>Using the get() Method 239</p> <p>Using the pop() Method 241</p> <p>Working with the in Operator 245</p> <p>Updating a Dictionary 246</p> <p>Duplicating a Dictionary 249</p> <p>Clearing a Dictionary 254</p> <p>Summary 255</p> <p>Exercises 255</p> <p><b>Lesson 11: Diving Deeper into Data Structures: Sets 259</b></p> <p>Sets 260</p> <p>Retrieving Items from a Set 261</p> <p>Adding Items to a Set 262</p> <p>Creating an Empty Set 262</p> <p>Understanding Set Uniqueness 263</p> <p>Searching Items in a Set 265</p> <p>Calculating the Length of a Set 267</p> <p>Deleting Items from a Set 268</p> <p>Clearing a Set 270</p> <p>Popping Items in a Set 272</p> <p>Deleting a Set 273</p> <p>Determining the Difference Between Sets 274</p> <p>Intersecting Sets 277</p> <p>Combining Sets 278</p> <p>Summary 279</p> <p>Exercises 279</p> <p><b>Lesson 12: Pulling It All Together: Prompting for an Address 283</b></p> <p>Step 1: Getting Started 284</p> <p>Step 2: Accept User Input 285</p> <p>Step 3: Display the Input Value 286</p> <p>Step 4: Modify the Output 287</p> <p>Step 5: Split a Text Value 288</p> <p>Step 6: Display Only the House Number 290</p> <p>Step 7: Display the Street Name 291</p> <p>Step 8: Add the Period 292</p> <p>Summary 293</p> <p><b>Lesson 13: Organizing with Functions 295</b></p> <p>Functions Overview 295</p> <p>Defining Functions in Python 296</p> <p>Function Syntax 300</p> <p>Default Input Values 301</p> <p>Parameter Syntax 303</p> <p>Arbitrary Arguments 304</p> <p>Keyword Arguments 306</p> <p>Arbitrary Keyword Arguments 306</p> <p>Summary 308</p> <p>Exercises 309</p> <p><b>Part III: Object- Oriented Programming in Python 311</b></p> <p><b>Lesson 14: Incorporating Object- Oriented Programming 313</b></p> <p>Object- Oriented Programming Overview 314</p> <p>Defining Classes 314</p> <p>Creating Objects 316</p> <p>Working with Methods 319</p> <p>Class Attributes 324</p> <p>Summary 330</p> <p>Exercises 330</p> <p><b>Lesson 15: Including</b></p> <p>Inheritance 333</p> <p>Understanding Inheritance 334</p> <p>Creating a Parent Class 335</p> <p>Creating a Child Class 335</p> <p>Inheriting at Multiple Levels 338</p> <p>Overriding Methods 340</p> <p>Summary 343</p> <p>Exercises 344</p> <p><b>Lesson 16: Pulling It All Together: Building a Burger Shop 349</b></p> <p>Requirements for Our Application 350</p> <p>Plan the Code 350</p> <p>Create the Classes 351</p> <p>Create the Food Item Class 352</p> <p>Create the Main File 357</p> <p>Display the Output 364</p> <p>Tie the Code Files Together 364</p> <p>Summary 368</p> <p><b>Part IV: Data Processing with Python 369</b></p> <p><b>Lesson 17: Working with Dates and Times 371</b></p> <p>Getting Started with Dates and Times 372</p> <p>Getting the Current Date and Time 376</p> <p>Splitting a Date String 377</p> <p>Using datetime Attributes 379</p> <p>Creating Custom datetime Objects 380</p> <p>Compare datetime Values 381</p> <p>Working with UTC Format 383</p> <p>Applying Timestamps 384</p> <p>Arithmetic and Dates 387</p> <p>Calculating the Difference in Days 388</p> <p>Using Date without Time 390</p> <p>Using Time without Date 392</p> <p>Summary 394</p> <p>Exercises 394</p> <p>Calculator 1: Time Duration 396</p> <p>Calculator 2: Add or Subtract Time from a Date 397</p> <p>Calculator 3: Age Calculator 397</p> <p><b>Lesson 18: Processing Text Files 399</b></p> <p>File Processing Overview 401</p> <p>Introduction to File Input/Output 402</p> <p>Processing Text Files 404</p> <p>Opening a File 404</p> <p>Reading Text from a File 406</p> <p>Add Content to a File 412</p> <p>Overwriting the Contents of a File 415</p> <p>Creating a New File 417</p> <p>Using the os Module 418</p> <p>Deleting a File 419</p> <p>Summary 421</p> <p>Exercises 421</p> <p><b>Lesson 19: Processing CSV Files 425</b></p> <p>Reading CSV Files 426</p> <p>Using the DictReader Class 430</p> <p>Creating a Dataset List 432</p> <p>Using writerow() 434</p> <p>Appending Data 436</p> <p>Writing Rows as Lists 439</p> <p>Writing Rows from Dictionaries 440</p> <p>Summary 444</p> <p>Exercises 444</p> <p><b>Lesson 20: Processing JSON Files 447</b></p> <p>Processing JSON Files 448</p> <p>Creating a JSON File with dump() 448</p> <p>Converting to JSON with dumps() 449</p> <p>Formatting JSON Data 450</p> <p>Using json.loads() 452</p> <p>Iterating through JSON Data 454</p> <p>Reading and Writing JSON Data 457</p> <p>Summary 460</p> <p>Exercises 461</p> <p><b>Part V: Data Analysis and Exception Handling 465</b></p> <p><b>Lesson 21: Using Lambdas 467</b></p> <p>Creating a Lambda Function 468</p> <p>Working with Multiple Inputs 469</p> <p>Placing Lambda Functions inside a Function 471</p> <p>Using the map() Function 472</p> <p>Combining Map and Lambda Functions 475</p> <p>Using the filter() Function 477</p> <p>Combining a Filter and a Lambda 479</p> <p>Using the reduce() Function 480</p> <p>Summary 486</p> <p>Exercises 486</p> <p><b>Lesson 22: Handling Exceptions 491</b></p> <p>Built- In Exceptions 492</p> <p>Working with try and except 493</p> <p>Working with Multiple Excepts 495</p> <p>Combining Exception Types 498</p> <p>Using Multiple Operations in a try 500</p> <p>Using the raise Keyword 501</p> <p>Exploring the General Exception Classes 502</p> <p>Adding finally 505</p> <p>Summary 506</p> <p>Exercises 506</p> <p><b>Lesson 23: Pulling It All Together: Word Analysis in Python 511</b></p> <p>Examine the Data 512</p> <p>Read the Data 514</p> <p>Tokenize the Dataset 517</p> <p>Count the Words in Each Review 524</p> <p>Summary 528</p> <p><b>Lesson 24: Extracting, Transforming, and Loading with ETL Scripting 531</b></p> <p>ETL Scripting in Python 532</p> <p>Design and Implement Custom ETL Scripts 532</p> <p>The extract Class 534</p> <p>The transform Class 546</p> <p>The load Class 569</p> <p>Summary 582</p> <p>Exercises 582</p> <p><b>Lesson 25: Improving ETL Scripting 585</b></p> <p>Converting to Static Methods for the extract Class 586</p> <p>Converting to Static Methods for the transform Class 588</p> <p>Summary 607</p> <p>Exercises 608</p> <p><b>Part VI: Appendices 611</b></p> <p><b>Appendix A: Flowcharts 613</b></p> <p>Flowchart Basics 613</p> <p>Common Flowcharting Shapes 615</p> <p><b>Appendix B: Creating Pseudocode 621</b></p> <p>What Is Pseudocode? 621</p> <p><b>Appendix C: Installing MySQL 623</b></p> <p>MySQL Installation 623</p> <p>Verify the Installation 628</p> <p>The MySQL Notifier 630</p> <p><b>Appendix D: Installing Vinyl DB 631</b></p> <p>Database Structure 631</p> <p>Create the Database 632</p> <p><b>Appendix E: Installing MongoDB 637</b></p> <p>Installing MongoDB Community Server 637</p> <p>Running MongoDB 642</p> <p><b>Appendix F: Importing to MongoDB 643</b></p> <p>Index 645</p>
<p><b>HAYTHEM BALTI, PhD,</b> is the associate dean at Wiley’s mthree academy. He has created courses used by thousands of Software Guild and mthree alumni to learn Go, Java, Python, and other development and data science skills.</p> <p><b>KIMBERLY A. WEISS</b> is a veteran course developer, specializing in Computer Science courses since 2002. She was an assistant professor in Computer Science for over ten years before deciding to focus exclusively on course design. She has worked with multiple universities as well as corporate training settings to develop interactive instructional content appropriate for the target learners and course goals.
<p><b>PREPARE FOR A REAL-WORLD PROGRAMMING OR DATA SCIENCE ROLE WITH PYTHON</b></p> <p>Python offers one of the most programmer-friendly learning curves of any major language. It combines this with tremendous utility and practicality for data scientists and software developers everywhere. Python’s unique mixture of accessibility and potential has made it one of the most popular languages for data processing and analysis used today. <p> In <i>Job Ready Python</i>, veteran software educator and developer Haythem Balti delivers an incisive and hands-on approach to Python you can apply immediately to real-world environments. Based on the famous mthree Global Academy and Software Guild training program, this book explores and teaches the basics of Python, loops and data structures, object-oriented programming, and data processing. <p> The author provides straightforward, step-by-step approaches to dealing with databases—including MySQL and MongoDB—as well as dates and times, CSV files, and JSON files. Readers will also find thorough discussions of the Extract, Transform, and Load (ETL) framework for scripting in Python. <p> Perfect for Python newbies who want to transition into a new career or job role, J<i>ob Ready Python</i> will also prove to be a favorite of amateur and early-career Python developers brushing up on the foundations of their craft and looking for: <ul><li>Create a Python programming environment and initial setup</li> <li>Understand loops and data structures, including lists, dictionaries, and tuples</li> <li>Explore object-oriented programming (OOP) in Python</li> <li>Process various forms of data with Python, including dates and times</li> <li>Handle exceptions, debug code, and use Lambda functions</li> <li>Create pseudocode and install MySQL and MongoDB</li></ul> <p>The companion website at www.wiley.com/go/jobreadypython provides exercises for each chapter, plus data that can be used to test out the various data mining techniques in the book.

Diese Produkte könnten Sie auch interessieren:

Software Process Modeling
Software Process Modeling
von: Silvia T. Acuna, Natalia Juristo
PDF ebook
96,29 €
A Software Process Model Handbook for Incorporating People's Capabilities
A Software Process Model Handbook for Incorporating People's Capabilities
von: Silvia T. Acuna, Natalia Juristo, Ana Maria Moreno, Alicia Mon
PDF ebook
149,79 €
XML for Bioinformatics
XML for Bioinformatics
von: Ethan Cerami
PDF ebook
53,49 €