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 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 08-10-2023
Tradition dictates that Hello World! be the first program that you write when you're learning a new programming language like Python. You're following in the footsteps of many great programmers when you create this project.To create your Hello World! program, follow these steps: Open your Start menu and choose Python (command line).
Article / Updated 08-10-2023
The Python interpreter takes in each line and operates on it immediately (more or less) after you press the Enter key. In Hello World! you use Python's print feature. print takes what's inside the parentheses and outputs it to the command line (also called the console). Python is sensitive to both the grammar and punctuation.
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.
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 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.
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
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.
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 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.