Mehr lesen
Klappentext A simple, straightforward, and hands-on roadmap to the world of computer programming with PythonTeach Yourself VISUALLY: Python is your personal guide to getting you started in programming. As one of the world's most popular--and most accessible--coding languages, Python is your gateway into the wide and wonderful world of computer science. This hands-on guide walks you through Python step by clearly illustrated step, from writing your very first Python code in a terminal window or the VS Code app through to creating your own lists, dictionaries, and custom classes.In the book, you'll learn to:* Install Python and the tools you need to work with it on Windows, macOS, and Linux* Work with files and folders, manipulate text, and create powerful functions that do exactly what you want* Write clean code that makes decisions effectively, repeats actions as needed, and handles any errors that occurA must-have resource for aspiring programmers starting from the very beginning, Teach Yourself VISUALLY: Python is also an indispensable handbook for programmers making a transition from another language. Zusammenfassung A simple, straightforward, and hands-on roadmap to the world of computer programming with PythonTeach Yourself VISUALLY: Python is your personal guide to getting you started in programming. As one of the world's most popular--and most accessible--coding languages, Python is your gateway into the wide and wonderful world of computer science. This hands-on guide walks you through Python step by clearly illustrated step, from writing your very first Python code in a terminal window or the VS Code app through to creating your own lists, dictionaries, and custom classes.In the book, you'll learn to:* Install Python and the tools you need to work with it on Windows, macOS, and Linux* Work with files and folders, manipulate text, and create powerful functions that do exactly what you want* Write clean code that makes decisions effectively, repeats actions as needed, and handles any errors that occurA must-have resource for aspiring programmers starting from the very beginning, Teach Yourself VISUALLY: Python is also an indispensable handbook for programmers making a transition from another language. Inhaltsverzeichnis Chapter 1 Getting Ready to Work with Python Understanding What Python Is and Does 4 Choose the Right Version of Python 6 Install Python on Windows 8 Install Python on the Mac 12 Install Python on Linux If Necessary 14 Learn About Development Tools for Python 16 Download and Install Visual Studio Code 20 Get Started with Visual Studio Code and Apply a Theme 22 Install Visual Studio Code Extensions for Python 24 Configure Visual Studio Code for Working with Python 26 Chapter 2 Writing and Running Your First Python Code Understanding the main() Function 30 Create and Save a New Script in Visual Studio Code 32 Write and Run Code in Visual Studio Code 34 Execute Python Commands in a Terminal Window 38 Run a Python Script in a Terminal Window 39 Understanding Comments in Python 40 Add Comments to Your Code 42 Grasp Importing Modules and Objects 44 Import Modules and Use Their Methods 48 Chapter 3 Getting Started with Variables Understanding Variables and Their Usage 52 Understanding Python's Data Types 54 Work with Integers 58 Work with Floating¿Point Values 60 Work with Boolean Values 62 Work with Tuples 64 Work with Sets 66 Start Working with Strings 68 Start Working with Lists 70 Start Working with Dictionaries 72 Convert Data from One Type to Another 74 Chapter 4 Working with Files and Directories Understanding Working with Files and Directories 78 Load the os Module and List Files and D...