Giter VIP home page Giter VIP logo

samples's Introduction

Begin to Code with Python

Begin to Code with Python book cover

This is the sample code for the book "Begin to Code with Python" by Rob Miles. You can find the official Microsoft Press Store page for this book here

Languages and tools

Python

You should use the latest version of Python 3 which you can find here. There are versions of Python for many platforms. The book uses the Idle code editor which is included with the Python distribution. It doesn't matter which version of Python 3.n that you use, but you must not use any form of Python 2.n

Visual Studio Code

The book also uses Visual Studio Code which you can find here.

Snaps

The Snaps framework is used for some of the graphical exercises in the text. You don't need it for most of the exercises. The Snaps framework uses PyGame for graphics and user input. You can find out how to install PyGame in the book. Take a look at page 65. The site for PyGame is here.

Important Notes:

Typo

There is an error on page 66. Rather than it saying

from snaps import * 

It should just say

import snaps

To make snaps work you just have to have the snaps program in the same folder as your program.

Using the keyboard with Snaps

There have been some reports of the keyboard reading function in Snaps not working correctly when you run your Python program from within an IDE such as pyCharm or IDLE. If you find the keyboard to be unresponsive, try running the Python program directly in Python, rather than inside an IDE. Check on page 63 for details of how to run a program from the desktop.

Videos

There are some videos which take you through installing Python and Snaps. You can find them here.

Microsoft Certified Professional

You can find a set of notes that will help you use this book to revise for the Microsoft Certified Professional Exam 98-381, 'Introduction to Programming Using Python' here

Buying the book

You can buy the book here

Getting in touch

You can find my blog at www.robmiles.com

If you have any questions about the links, the sample programs, or the book, you can get in touch with me via email on questions at begintocodewithpython.com. You can also tweet any questions to @begintocode or @robmiles

samples's People

Contributors

crazyrobmiles avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.