A Pythonic Adventure

Download A Pythonic Adventure PDF/ePub or read online books in Mobi eBooks. Click Download or Read Online button to get A Pythonic Adventure book now. This website allows unlimited access to, at the time of writing, more than 1.5 million titles, including hundreds of thousands of titles in various foreign languages.
A Pythonic Adventure

Time to take an adventure with friends! Team up with Erik and Simon to learn Python the easy way. This colorful book uses engaging questions and lively conversations to introduce computer programming to young readers one step at a time. In A Pythonic Adventure, you will learn useful Python skills like: Installing Python Working with files Creating text-based dialogs and menus Using if/then, loops, lists, dictionaries, and input/output Building web applications Making your web apps look super professional It’s fun to learn with friends! In A Pythonic Adventure you’ll meet Erik and Simon, two brothers who are just beginning their Python journey. Join them as they chat about the language, learn the basics, and build some cool programs. The book’s dialogue helps young programmers understand complex concepts much more easily. It's the perfect way for young programmers (and their parents) to get started. There’s no boring lessons or dull exercises in this adventure. You’ll follow Erik and Simon’s questions and mistakes, discover how to write programs with a team, and get a chance to create applications you can use in your daily life. By the time they’re done reading, young learners will not only know how to write code, they’ll know how to think about problems like professional developers. All code in this book runs on Mac, Windows, Linux, and Raspberry Pi. About the technology Computer programming is an adventure, full of new experiences, challenges, triumphs, and mistakes. In A Pythonic Adventure, you’ll join brothers Erik and Simon as they learn to create their first Python program. Written especially for young readers, this book is the perfect introduction to a skill that will last a lifetime! About the book A Pythonic Adventure teaches you to code by asking questions, making errors, and trying out different solutions—just like in real life. As you go, you’ll create a web application for a coffee shop step-by-step, from your first online menu to saving orders in a database. And this unique tutorial goes deeper than other beginner books. You’ll learn and practice important skills like planning applications, finding bugs, and managing user expectations. What's inside Installing Python Creating text-based dialogs and menus Building web applications Making your web apps look professional About the reader For readers aged 10+. Perfect for adult beginners, too! About the author Pavel Anni is a Principal Customer Engineer at SambaNova Systems, and has also worked for Sun Microsystems, Oracle, and Red Hat. Table of Contents 1 Coffee for friends: First steps 2 Lists: What’s on the menu? 3 Functions: Don’t repeat yourself! 4 User errors: Everybody makes mistakes 5 Working with files: Being a shop manager 6 Main menu: Next customer! 7 Creating functions: Get the order and print it 8 Working with JSON: Save the order 9 Complete the menu: A real program 10 Learning Flask: Your first web application 11 Web form for orders: Coffee shop on the web 12 Database: We need good storage 13 Styles: Making it pretty 14 Help from AI: Improving our code 15 Next steps: Plans for the future
Dive Into Algorithms

Author: Bradford Tuckfield
language: en
Publisher: No Starch Press
Release Date: 2021-01-05
Dive Into Algorithms is a broad introduction to algorithms using the Python Programming Language. Dive Into Algorithms is a wide-ranging, Pythonic tour of many of the world's most interesting algorithms. With little more than a bit of computer programming experience and basic high-school math, you'll explore standard computer science algorithms for searching, sorting, and optimization; human-based algorithms that help us determine how to catch a baseball or eat the right amount at a buffet; and advanced algorithms like ones used in machine learning and artificial intelligence. You'll even explore how ancient Egyptians and Russian peasants used algorithms to multiply numbers, how the ancient Greeks used them to find greatest common divisors, and how Japanese scholars in the age of samurai designed algorithms capable of generating magic squares. You'll explore algorithms that are useful in pure mathematics and learn how mathematical ideas can improve algorithms. You'll learn about an algorithm for generating continued fractions, one for quick calculations of square roots, and another for generating seemingly random sets of numbers. You'll also learn how to: • Use algorithms to debug code, maximize revenue, schedule tasks, and create decision trees • Measure the efficiency and speed of algorithms • Generate Voronoi diagrams for use in various geometric applications • Use algorithms to build a simple chatbot, win at board games, or solve sudoku puzzles • Write code for gradient ascent and descent algorithms that can find the maxima and minima of functions • Use simulated annealing to perform global optimization • Build a decision tree to predict happiness based on a person's characteristics Once you've finished this book you'll understand how to code and implement important algorithms as well as how to measure and optimize their performance, all while learning the nitty-gritty details of today's most powerful algorithms.
Mission Python

Program a graphical adventure game in this hands-on, beginner-friendly introduction to coding in the Python language. Launch into coding with Mission Python, a space-themed guide to building a complete computer game in Python. You'll learn programming fundamentals like loops, strings, and lists as you build Escape!, an exciting game with a map to explore, items to collect, and tricky logic puzzles to solve. As you work through the book, you'll build exercises and mini-projects, like making a spacewalk simulator and creating an astronaut's safety checklist that will put your new Python skills to the test. You'll learn how to use Pygame Zero, a free resource that lets you add graphics and sound effects to your creations, and you'll get useful game-making tips, such as how to design fun puzzles and intriguing maps. Before you know it, you'll have a working, awesome game to stump your friends with (and some nifty coding skills, too!). You can follow this book using a Raspberry Pi or a Microsoft Windows PC, and the 3D graphics and sound effects you need are provided as a download.