2.4 Working with Python in Visual Studio Code

This book provides a practical guide for beginners to set up their programming environment and start writing software. It covers installing essential tools such as Python and Visual Studio Code, along with necessary extensions, and familiarizes readers with the integrated development environment. Furthermore, it teaches how to integrate and effectively use an AI code assistant like Copilot to generate and understand Python code, emphasizing a hands-on approach to learning to code.

This page is free — overview and chapter list only.
The complete book body is sold separately.

Full book: $2.99 USDC via x402 ·
Per chapter: $0.25 USDC

Buy / open complete book (HTML)
· Complete book Markdown (.md)

Agents: start with free /library/discovery.json, sample free teaser chapters,
then pay for individual chapters or the complete book URL above.
Append .md to any content URL for Markdown with YAML front matter.

Chapters

  1. 21 Setting Up Your Computer To Start Learning (Free teaser)
  2. 23 Getting Your System Set Up Part 1 ($0.25)
  3. 242 Check To See If Your Setup Is Working Properly ($0.25)
  4. 261 Check To See If Copilot Is Working Properly ($0.25)
  5. 27 Addressing Common Copilot Challenges ($0.25)
  6. 282 Showcasing Copilots Value In A Data Processing Task ($0.25)
  7. Reminder Copilot Is Nondeterministic ($0.25)
  8. 31 Functions ($0.25)
  9. 311 The Components Of A Function ($0.25)
  10. 312 Using A Function ($0.25)
  11. 331 Dans Stock Pick ($0.25)
  12. 332 Leos Password ($0.25)
  13. 333 Getting A Strong Password ($0.25)
  14. Getting Copilot To Suggest Code May Require Pressing Tab Or ($0.25)
  15. 34 Benefits Of Functions ($0.25)
  16. 35 Roles Of Functions ($0.25)
  17. 361 Attributes Of Good Functions ($0.25)
  18. 37 Exercises ($0.25)
  19. Summary ($0.25)
  20. 41 Why We Need To Read Code ($0.25)
  21. 42 Asking Copilot To Explain Code ($0.25)
  22. 432 2 Variables ($0.25)
  23. 44 Exercises ($0.25)
  24. This Chapter Covers ($0.25)
  25. 513 8 Dictionaries ($0.25)
  26. 514 9 Files ($0.25)
  27. More Than One Way To Solve A Programming Problem ($0.25)
  28. 623 Open Box Testing ($0.25)
  29. 633 Doctest ($0.25)
  30. 652 Improving The Prompt To Find A Better Solution ($0.25)
  31. 653 Testing The New Solution ($0.25)
  32. 661 What Tests Should We Run ($0.25)
  33. 663 Testing The Function ($0.25)
  34. 751 Getting The List Of Words From The Word List File ($0.25)
  35. 753 Generating The List Of All Real Words ($0.25)
  36. 772 Addletter ($0.25)
  37. 773 Deleteletter ($0.25)
  38. 776 Allrealwords ($0.25)
  39. 821 Using Print Statements To Learn About The Code Behavior ($0.25)
  40. Debugging An Art More Than A Science ($0.25)
  41. 831 Asking Copilot To Fix Your Bug Via Copilot Chat ($0.25)
  42. 834 Modifying The Code To Fix The Bug Yourself ($0.25)
  43. 931 Conversing With Copilot ($0.25)
  44. Why We Should Explore And Understand Our Options ($0.25)
  45. 941 Conversing With Copilot ($0.25)
  46. 942 Writing The Tool ($0.25)
  47. Be Careful With Automation Programs ($0.25)
  48. Using An Earlier Version Of Pypdf2 ($0.25)
  49. If You Encounter Nameerror When You Import ($0.25)
  50. 951 Conversing With Copilot ($0.25)
  51. 952 Top Down Design ($0.25)
  52. Listing 96 Getgoodfilename Function For Our Picture Merge Ta ($0.25)
  53. This Chapter Covers 2 ($0.25)
  54. Wordle ($0.25)
  55. 1032 Top Down Design ($0.25)
  56. Using Parameters And Variables To Avoid Magic Numbers ($0.25)
  57. 1034 Implementing Our Functions ($0.25)
  58. Listing 102 Alternative Solution For The Function Randomstri ($0.25)
  59. Listing 103 Function Get Guess For User Input ($0.25)
  60. Listing 105 Function Play For Playing The Game ($0.25)
  61. Bogart ($0.25)
  62. 1042 Top Down Design ($0.25)
  63. Task 3B Take A Full Turn For The Current Player ($0.25)
  64. Listing 108 Turnover Function In Bogart ($0.25)
  65. Listing 1012 Play Function In Bogart ($0.25)
  66. Customizing The Game ($0.25)
  67. This Chapter Covers 3 ($0.25)
  68. Machine Learning ($0.25)
  69. Features Related To The Structure Of The Authors Sentences ($0.25)
  70. 1152 Averagewordlength ($0.25)
  71. 1154 Exactlyoncetototal ($0.25)
  72. 1155 Splitstring ($0.25)
  73. 1157 Averagesentencelength ($0.25)
  74. 11511 Getallsignatures ($0.25)
  75. 11513 Lowestscore ($0.25)
  76. 11515 Makeguess ($0.25)
  77. This Chapter Covers 4 ($0.25)
  78. 1211 Flipped Interaction Pattern ($0.25)
  79. 1212 Persona Pattern ($0.25)
  80. 1221 Where Copilot Currently Struggles ($0.25)