Brendan Scott

Brendan Scott is a dad who loves Python and wants kids to get some of its magic too. He started pythonforkids.brendanscott.com to help teach his oldest child to code. He maintains it to help other young people learn Python.

Articles & Books From Brendan Scott

Article / Updated 09-19-2019
Yard signs are a good way to spread your campaign brand, have supporters show their enthusiasm, and make your opponents nervous. Yard signs are an essential part of your campaign marketing, but by themselves they don’t win elections. Invest in yard signs as part of your campaign strategy. Don’t bother counting your opponent’s yard signs, because elections are won by votes and not the number of yard signs littering lawns and highways.
Cheat Sheet / Updated 02-24-2022
Python coding helps you with things you do every day, like math homework. Python programming can also help with things like making web pages: Thank goodness for widgets and keywords!Python 2.7 keyword subset and examplesProgramming is an important skill. Python will serve you well for years to come. The tables here give you the core words, built-ins, standard library functions, and operators that you’ll use most when you’re coding with Python.
Article / Updated 03-26-2016
Python is a programming language written by a person called Guido van Rossum in the 1990s. Programming languages allow you to control what a computer does and the way it does it. Some of the things that make Python totes awesome (also known as "really helpful and lots of fun") are: Python code is easy to read and understand.
Article / Updated 03-26-2016
Tkinter in Python comes with a lot of good widgets. Widgets are standard graphical user interface (GUI) elements, like different kinds of buttons and menus. Most of the Tkinter widgets are given here. Label Widget A Label widget shows text to the user. You can update the widget programmatically to, for example, provide a readout or status bar.
Article / Updated 03-26-2016
Python can do fractions so you can check your homework answers. Use the fractions module, and its Fraction object, specifying the numerator and denominator. To get one-half, type fractions.Fraction(1, 2). For four-fifths, type fractions.Fraction(4, 5): >>> import fractions >>> one_half = fractions.Fraction(1, 2) >>> one_fifth = fractions.
Article / Updated 10-04-2023
Programming is an important skill. Python will serve you well for years to come. The tables here give you the core words, built-ins, standard library functions, and operators that you'll use most when you're coding with Python. Python Core Words KeywordSummaryExample and Logical operator to test whether two things are both True.
Article / Updated 03-26-2016
Usually you get called rude if you interrupt. Not in programming. Are you ready to create a program that never finishes by itself (called an infinite loop)? This section shows you how to force it to stop. Forcing a stop is useful when your program locks up and won't respond. The trick is to press Ctrl+C (the Ctrl key and the C key at the same time; don't press the Shift key).
Article / Updated 10-19-2022
Whether you use a Mac, Windows, or Linux OS (operating system), you can find and install Python on your computer. The following sections give you instructions for each OS. How to install Python on Mac OSX To find and start Python on Mac OSX computers, follow these steps: Press Cmd+spacebar to open Spotlight.
Article / Updated 03-26-2016
Functions are extremely useful and powerful tools in your programming toolbox because they allow you to separate your program into meaningful blocks. All the built-ins in Python are functions, as is everything in the standard library. The rules for naming a function are a lot like rules for naming a variable: They must start with a letter or an underscore: _.
Article / Updated 03-26-2016
Functions in programming are a simple way to group together actions. With them you can do some groups of actions repeatedly without having to retype all the code. You save typing, and it's easier to think about how to structure your program and to update it. One problem with these approaches: They don't let you reuse code in other circumstances.