Python Playground

Author: Mahesh Venkitachalam
Editor: No Starch Press
ISBN: 1593276044
File Size: 55,79 MB
Format: PDF, ePub, Mobi
Read: 2402
Download

Python is a powerful programming language that’s easy to learn and fun to play with. But once you’ve gotten a handle on the basics, what do you do next? Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations of real-world phenomena, and interact with hardware like the Arduino and Raspberry Pi. You’ll learn to use common Python tools and libraries like numpy, matplotlib, and pygame to do things like: *Generate Spirograph-like patterns using parametric equations and the turtle module *Create music on your computer by simulating frequency overtones *Translate graphical images into ASCII art *Write an autostereogram program that produces 3D images hidden beneath random patterns *Make realistic animations with OpenGL shaders by exploring particle systems, transparency, and billboarding techniques *Construct 3D visualizations using data from CT and MRI scans *Build a laser show that responds to music by hooking up your computer to an Arduino Programming shouldn’t be a chore. Have some solid, geeky fun with Python Playground. The projects in this book are compatible with both Python 2 and 3.

Python Playground

Author: Mahesh Venkitachalam
Editor: No Starch Press
ISBN: 1593277334
File Size: 40,38 MB
Format: PDF, Mobi
Read: 8177
Download

Python is a powerful programming language that’s easy to learn and fun to play with. But once you’ve gotten a handle on the basics, what do you do next? Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations of real-world phenomena, and interact with hardware like the Arduino and Raspberry Pi. You’ll learn to use common Python tools and libraries like numpy, matplotlib, and pygame to do things like: –Generate Spirograph-like patterns using parametric equations and the turtle module –Create music on your computer by simulating frequency overtones –Translate graphical images into ASCII art –Write an autostereogram program that produces 3D images hidden beneath random patterns –Make realistic animations with OpenGL shaders by exploring particle systems, transparency, and billboarding techniques –Construct 3D visualizations using data from CT and MRI scans –Build a laser show that responds to music by hooking up your computer to an Arduino Programming shouldn’t be a chore. Have some solid, geeky fun with Python Playground. The projects in this book are compatible with both Python 2 and 3.

Automate The Boring Stuff With Python

Author: Al Sweigart
Editor:
ISBN: 1593279922
File Size: 40,28 MB
Format: PDF, Docs
Read: 712
Download

The second edition of this best-selling Python book (100,000+ copies sold in print alone) uses Python 3 to teach even the technically uninclined how to write programs that do in minutes what would take hours to do by hand. There is no prior programming experience required and the book is loved by liberal arts majors and geeks alike. If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? In this fully revised second edition of the best-selling classic Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand--no prior programming experience required. You'll learn the basics of Python and explore Python's rich library of modules for performing specific tasks, like scraping data off websites, reading PDF and Word documents, and automating clicking and typing tasks. The second edition of this international fan favorite includes a brand-new chapter on input validation, as well as tutorials on automating Gmail and Google Sheets, plus tips on automatically updating CSV files. You'll learn how to create programs that effortlessly perform useful feats of automation to: - Search for text in a file or across multiple files - Create, update, move, and rename files and folders - Search the Web and download online content - Update and format data in Excel spreadsheets of any size - Split, merge, watermark, and encrypt PDFs - Send email responses and text notifications - Fill out online forms Step-by-step instructions walk you through each program, and updated practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks. Don't spend your time doing work a well-trained monkey could do. Even if you've never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python, 2nd Edition.

Automate The Boring Stuff With Python 2nd Edition

Author: Al Sweigart
Editor: No Starch Press
ISBN: 1593279930
File Size: 29,78 MB
Format: PDF, Kindle
Read: 8429
Download

The second edition of this best-selling Python book (over 500,000 copies sold!) uses Python 3 to teach even the technically uninclined how to write programs that do in minutes what would take hours to do by hand. There is no prior programming experience required and the book is loved by liberal arts majors and geeks alike. If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? In this fully revised second edition of the best-selling classic Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand--no prior programming experience required. You'll learn the basics of Python and explore Python's rich library of modules for performing specific tasks, like scraping data off websites, reading PDF and Word documents, and automating clicking and typing tasks. The second edition of this international fan favorite includes a brand-new chapter on input validation, as well as tutorials on automating Gmail and Google Sheets, plus tips on automatically updating CSV files. You'll learn how to create programs that effortlessly perform useful feats of automation to: • Search for text in a file or across multiple files • Create, update, move, and rename files and folders • Search the Web and download online content • Update and format data in Excel spreadsheets of any size • Split, merge, watermark, and encrypt PDFs • Send email responses and text notifications • Fill out online forms Step-by-step instructions walk you through each program, and updated practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks. Don't spend your time doing work a well-trained monkey could do. Even if you've never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python, 2nd Edition.

Python Playground

Author: Mahesh Venkitachalam
Editor:
ISBN: 9781457197161
File Size: 26,89 MB
Format: PDF, ePub
Read: 8636
Download


Learn Python Visually

Author: Tristan Bunn
Editor: No Starch Press
ISBN: 1718500963
File Size: 74,92 MB
Format: PDF, ePub, Mobi
Read: 3762
Download

An accessible, visual, and creative approach to teaching core coding concepts using Python's Processing.py, an open-source graphical development environment. This beginners book introduces non-programmers to the fundamentals of computer coding within a visual, arts-focused context. Tristan Bunn's remarkably effective teaching approach is designed to help you visualize core programming concepts while you make cool pictures, animations, and simulations using Python Mode for the open-source Processing development environment. Right from the first chapter, you'll produce and manipulate colorful drawings, shapes and patterns as Bunn walks you through a series of easy-to-follow graphical coding projects that grow increasingly complex. You'll go from drawing with code to animating a bouncing DVD screensaver and practicing data-visualization techniques. Along the way, you'll encounter creative-yet-practical skill-building challenges that relate to everything from video games, cars, and coffee, to fine art, amoebas, and Pink Floyd. As you grow more fluent in both Python and programming in general, topics shift toward the mastery of algorithmic thinking, as you explore periodic motion, Lissajous curves, and using classes to create objects. You'll learn about: - Basic coding theories and concepts, like variables, data types, pixel coordinates, control flow and algorithms - Writing code that produces drawings, patterns, animations, data visualizations, user interfaces, and simulations - Using conditional statements, iteration, randomness, lists and dictionaries - Defining functions, reducing repetition, and making your code more modular - How to write classes, and create objects to structure code more efficiently In addition to giving you a good grounding in general programming, the skills and knowledge you'll gain in this book are your entry point to coding for an ever-expanding horizon of creative technologies.

Invent Your Own Computer Games With Python 4e

Author: Al Sweigart
Editor: No Starch Press
ISBN: 159327811X
File Size: 28,49 MB
Format: PDF, ePub, Mobi
Read: 1536
Download

Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language—even if you’ve never programmed before! Begin by building classic games like Hangman, Guess the Number, and Tic-Tac-Toe, and then work your way up to more advanced games, like a text-based treasure hunting game and an animated collision-dodging game with sound effects. Along the way, you’ll learn key programming and math concepts that will help you take your game programming to the next level. Learn how to: –Combine loops, variables, and flow control statements into real working programs –Choose the right data structures for the job, such as lists, dictionaries, and tuples –Add graphics and animation to your games with the pygame module –Handle keyboard and mouse input –Program simple artificial intelligence so you can play against the computer –Use cryptography to convert text messages into secret code –Debug your programs and find common errors As you work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals. What new game will you create with the power of Python? The projects in this book are compatible with Python 3.

Python

Author: James R. Parker
Editor: Stylus Publishing, LLC
ISBN: 194453475X
File Size: 67,64 MB
Format: PDF, ePub, Mobi
Read: 7191
Download

This book is an introduction to programming concepts that uses Python 3 as the target language. It follows a practical just-in-time presentation – material is given to the student when it is needed. Many examples will be based on games, because Python has become the language of choice for basic game development. Designed as a Year One textbook for introduction to programming classes or for the hobbyist who wants to learn the fundamentals of programming, the text assumes no programming experience. Features: * Introduces programming concepts that use Python 3 * Includes many examples based on video game development * 4-color throughout with game demos on the companion files

Python Crash Course

Author: Eric Matthes
Editor: No Starch Press
ISBN: 1593277393
File Size: 58,23 MB
Format: PDF
Read: 8214
Download

Python Crash Course is a fast-paced, thorough introduction to Python that will have you writing programs, solving problems, and making things that work in no time. In the first half of the book, you’ll learn about basic programming concepts, such as lists, dictionaries, classes, and loops, and practice writing clean and readable code with exercises for each topic. You’ll also learn how to make your programs interactive and how to test your code safely before adding it to a project. In the second half of the book, you’ll put your new knowledge into practice with three substantial projects: a Space Invaders–inspired arcade game, data visualizations with Python’s super-handy libraries, and a simple web app you can deploy online. As you work through Python Crash Course you’ll learn how to: –Use powerful Python libraries and tools, including matplotlib, NumPy, and Pygal –Make 2D games that respond to keypresses and mouse clicks, and that grow more difficult as the game progresses –Work with data to generate interactive visualizations –Create and customize Web apps and deploy them safely online –Deal with mistakes and errors so you can solve your own programming problems If you’ve been thinking seriously about digging into programming, Python Crash Course will get you up to speed and have you writing real programs fast. Why wait any longer? Start your engines and code! Uses Python 2 and 3

Doing Math With Python

Author: Amit Saha
Editor: No Starch Press
ISBN: 1593276400
File Size: 25,95 MB
Format: PDF, ePub, Mobi
Read: 7245
Download

Doing Math with Python shows you how to use Python to delve into high school–level math topics like statistics, geometry, probability, and calculus. You’ll start with simple projects, like a factoring program and a quadratic-equation solver, and then create more complex projects once you’ve gotten the hang of things. Along the way, you’ll discover new ways to explore math and gain valuable programming skills that you’ll use throughout your study of math and computer science. Learn how to: -Describe your data with statistics, and visualize it with line graphs, bar charts, and scatter plots -Explore set theory and probability with programs for coin flips, dicing, and other games of chance -Solve algebra problems using Python’s symbolic math functions -Draw geometric shapes and explore fractals like the Barnsley fern, the Sierpinski triangle, and the Mandelbrot set -Write programs to find derivatives and integrate functions Creative coding challenges and applied examples help you see how you can put your new math and coding skills into practice. You’ll write an inequality solver, plot gravity’s effect on how far a bullet will travel, shuffle a deck of cards, estimate the area of a circle by throwing 100,000 “darts” at a board, explore the relationship between the Fibonacci sequence and the golden ratio, and more. Whether you’re interested in math but have yet to dip into programming or you’re a teacher looking to bring programming into the classroom, you’ll find that Python makes programming easy and practical. Let Python handle the grunt work while you focus on the math.

Micropython Cookbook

Author: Marwan Alsabbagh
Editor: Packt Publishing Ltd
ISBN: 1838641955
File Size: 13,81 MB
Format: PDF, Mobi
Read: 5830
Download

Learn how you can control LEDs, make music, and read sensor data using popular microcontrollers such as Adafruit Circuit Playground, ESP8266, and the BBC micro:bit Key Features Load and execute your first program with MicroPython Program an IoT device to retrieve weather data using a RESTful API Get to grips with integrating hardware, programming, and networking concepts with MicroPython Book Description MicroPython is an open source implementation of Python 3 that runs in embedded environments. With MicroPython, you can write clean and simple Python code to control hardware instead of using complex low-level languages like C and C++. This book guides you through all the major applications of the MicroPython platform to build and program projects that use microcontrollers. The MicroPython book covers recipes that’ll help you experiment with the programming environment and hardware programmed in MicroPython. You’ll find tips and techniques for building a variety of objects and prototypes that can sense and respond to touch, sound, position, heat, and light. This book will take you through the uses of MicroPython with a variety of popular input devices and sensors. You’ll learn techniques for handling time delays and sensor readings, and apply advanced coding techniques to create complex projects. As you advance, you’ll get to deal with Internet of Things (IoT) devices and integration with other online web services. Furthermore, you'll also use MicroPython to make music with bananas and create portable multiplayer video games that incorporate sound and light animations into the game play. By the end of the book, you'll have mastered tips and tricks to troubleshoot your development problems and push your MicroPython project to the next level! What you will learn Execute code without any need for compiling or uploading using REPL (read-evaluate-print-loop) Program and control LED matrix and NeoPixel drivers to display patterns and colors Build projects that make use of light, temperature, and touch sensors Configure devices to create Wi-Fi access points and use network modules to scan and connect to existing networks Use Pulse Width Modulation to control DC motors and servos Build an IoT device to display live weather data from the Internet at the touch of a button Who this book is for If you want to build and program projects that use microcontrollers, this book will offer you dozens of recipes to guide you through all the major applications of the MicroPython platform. Although no knowledge of MicroPython or microcontrollers is expected, a general understanding of Python is necessary to get started with this book.

Computer Coding For Kids

Author: Carol Vorderman
Editor: Dorling Kindersley Ltd
ISBN: 024142173X
File Size: 25,14 MB
Format: PDF, ePub, Mobi
Read: 8684
Download

Kids can take their first steps towards becoming expert computer programmers with this fully-updated guide to coding for beginners. They'll master Scratch 3.0, the brand-new version of the world's most popular coding language for beginners. This will let them discover what makes a computer work while learning how to build their own computer programs and games. Once they're Scratch experts, it's onto the more complex Python programming language to delve even deeper into the technology that surrounds us every day. Computer Coding for Kids uses a simple, visual layout to guide budding programmers step by step through the ins and outs of computer code, from algorithms to variables, even showing them how to find and fix bugs in their code. Before you know it, they'll be creating their own programs from scratch. It doesn't stop there, though. If Scratch and Python have got them hooked, there's a peek at binary and JavaScript to show them where their coding career could be heading next. This book also lifts the lid on computers and shows young readers the chips and processors that make technology come to life. Fully illustrated with funny and informative graphics, Computer Coding for Kids makes even the most difficult aspects of coding fun and easy to understand.

The Strongest Secret Master

Author: Qing YiDaoDou
Editor: Funstory
ISBN: 1649488890
File Size: 63,42 MB
Format: PDF, Kindle
Read: 2710
Download

It was too difficult to keep a low profile, and it was even harder not to touch a beauty. In the end, it was still up to me to decide, since beauties don't weigh anything, life is different.

Python

Author: Oswald Campesato
Editor: Stylus Publishing, LLC
ISBN: 1937585492
File Size: 39,11 MB
Format: PDF, ePub, Mobi
Read: 6901
Download

As part of the new Pocket Primer series, this book provides an overview of the major aspects and the source code to use Python 2. It covers the latest Python developments, built-in functions and custom classes, data visualization, graphics, databases, and more. It includes a companion disc with appendices, source code, and figures. This Pocket Primer is primarily for self-directed learners who want to learn Python 2 and it serves as a starting point for deeper exploration of Python programming. Features: +Includes a companion disc with appendices, source code, and figures +Contains material devoted to Raspberry Pi, Roomba, JSON, and Jython +Includes latest Python 2 developments, built-in functions and custom classes, data visualization, graphics, databases, and more +Provides a solid introduction to Python 2 via complete code samples On the CD-ROM: +Appendices (HTML5 and JavaScript Toolkits, Jython, SPA) +Source code samples +All images from the text (including 4-color) +Solutions to Odd-Numbered Exercises

Programming With Micropython

Author: Nicholas H. Tollervey
Editor: "O'Reilly Media, Inc."
ISBN: 1491972718
File Size: 13,98 MB
Format: PDF, ePub
Read: 9510
Download

It’s an exciting time to get involved with MicroPython, the re-implementation of Python 3 for microcontrollers and embedded systems. This practical guide delivers the knowledge you need to roll up your sleeves and create exceptional embedded projects with this lean and efficient programming language. If you’re familiar with Python as a programmer, educator, or maker, you’re ready to learn—and have fun along the way. Author Nicholas Tollervey takes you on a journey from first steps to advanced projects. You’ll explore the types of devices that run MicroPython, and examine how the language uses and interacts with hardware to process input, connect to the outside world, communicate wirelessly, make sounds and music, and drive robotics projects. Work with MicroPython on four typical devices: PyBoard, the micro:bit, Adafruit’s Circuit Playground Express, and ESP8266/ESP32 boards Explore a framework that helps you generate, evaluate, and evolve embedded projects that solve real problems Dive into practical MicroPython examples: visual feedback, input and sensing, GPIO, networking, sound and music, and robotics Learn how idiomatic MicroPython helps you express a lot with the minimum of resources Take the next step by getting involved with the Python community

Micropython For The Internet Of Things

Author: Charles Bell
Editor: Apress
ISBN: 1484231236
File Size: 11,53 MB
Format: PDF, Kindle
Read: 7076
Download

Quickly learn to program for microcontrollers and IoT devices without a lot of study and expense. MicroPython and controllers that support it eliminate the need for programming in a C-like language, making the creation of IoT applications and devices easier and more accessible than ever. MicroPython for the Internet of Things is ideal for readers new to electronics and the world of IoT. Specific examples are provided covering a range of supported devices, sensors, and MicroPython boards such as Pycom’s WiPy modules and MicroPython’s pyboard. Never has programming for microcontrollers been easier. The book takes a practical and hands-on approach without a lot of detours into the depths of theory. The book: Shows a faster and easier way to program microcontrollers and IoT devices Teaches MicroPython, a variant of one of the most widely used scripting languages Is friendly and accessible to those new to electronics, with fun example projects What You'll Learn Program in MicroPython Understand sensors and basic electronics Develop your own IoT projects Build applications for popular boards such as WiPy and pyboard Load MicroPython on the ESP8266 and similar boards Interface with hardware breakout boards Connect hardware to software through MicroPython Explore the easy-to-use Adafruit IO connecting your microcontroller to the cloud Who This Book Is For Anyone interested in building IoT solutions without the heavy burden of programming in C++ or C. The book also appeals to those wanting an easier way to work with hardware than is provided by the Arduino and the Raspberry Pi platforms.

Web Data Apis For Knowledge Graphs

Author: Albert Meroño-Peñuela
Editor: Morgan & Claypool Publishers
ISBN: 1636392024
File Size: 36,32 MB
Format: PDF, ePub, Mobi
Read: 6525
Download

This book describes a set of methods, architectures, and tools to extend the data pipeline at the disposal of developers when they need to publish and consume data from Knowledge Graphs (graph-structured knowledge bases that describe the entities and relations within a domain in a semantically meaningful way) using SPARQL, Web APIs, and JSON. To do so, it focuses on the paradigmatic cases of two middleware software packages, grlc and SPARQL Transformer, which automatically build and run SPARQL-based REST APIs and allow the specification of JSON schema results, respectively. The authors highlight the underlying principles behind these technologies—query management, declarative languages, new levels of indirection, abstraction layers, and separation of concerns—, explain their practical usage, and describe their penetration in research projects and industry. The book, therefore, serves a double purpose: to provide a sound and technical description of tools and methods at the disposal of publishers and developers to quickly deploy and consume Web Data APIs on top of Knowledge Graphs; and to propose an extensible and heterogeneous Knowledge Graph access infrastructure that accommodates a growing ecosystem of querying paradigms.

Python In The Playground

Author: Emily Lim
Editor:
ISBN: 9789811424472
File Size: 10,25 MB
Format: PDF, ePub
Read: 4440
Download


Python Continuous Integration And Delivery

Author: Moritz Lenz
Editor: Apress
ISBN: 1484242815
File Size: 45,69 MB
Format: PDF, Docs
Read: 8595
Download

Gain the techniques and tools that enable a smooth and efficient software development process in this quick and practical guide on Python continuous integration (CI) and continuous delivery (CD). Based on example applications, this book introduces various kinds of testing and shows you how to set up automated systems that run these tests, and install applications in different environments in controlled ways. Python Continuous Integration and Delivery tackles the technical problems related to software development that are typically glossed over in pure programming texts. After reading this book, you’ll see that in today's fast-moving world, no software project can afford to go through development, then an integration phase of unpredictable length and complexity, and finally be shipped to the customer -- just to find out that the resulting application didn't quite fill their need. Instead, you’ll discover that practicing continuous integration and continuous delivery reduces the risks by keeping changes small and automating otherwise painful processes. What You Will Learn Carry out various kinds of testing, including unit testing and continuous integration testing, of your Python code using Jenkins Build packages and manage repositories Incorporate Ansible and Go for automated packaging and other deployments Manage more complex and robust deployments Who This Book Is For Python programmers and operating staff that work with Python applications.

Invent Your Own Computer Games With Python 4th Edition

Author: Al Sweigart
Editor: No Starch Press
ISBN: 1593277954
File Size: 32,87 MB
Format: PDF, ePub, Mobi
Read: 6711
Download

Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language—even if you’ve never programmed before! Begin by building classic games like Hangman, Guess the Number, and Tic-Tac-Toe, and then work your way up to more advanced games, like a text-based treasure hunting game and an animated collision-dodging game with sound effects. Along the way, you’ll learn key programming and math concepts that will help you take your game programming to the next level. Learn how to: *Combine loops, variables, and flow control statements into real working programs *Choose the right data structures for the job, such as lists, dictionaries, and tuples *Add graphics and animation to your games with the pygame module *Handle keyboard and mouse input *Program simple artificial intelligence so you can play against the computer *Use cryptography to convert text messages into secret code *Debug your programs and find common errors As you work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals. What new game will you create with the power of Python? The projects in this book are compatible with Python 3.