Making a police light from a Raspberry Pi isn’t easy! But it sure is cheap. You will need: 7 wires 1 raspberry pi 3 1 red LED 1 blue LED 2 220 ohm resistors 1 momentary push button 1 breadboard Now place the pieces like the following: Then, using python,…
Chase
Python print() (Pt. 2)
The “%s” sign Try this code: Did it print what you thought it would? This is like the substitution method in linear equations. For all the “%s” signs, at the end, after the “%” sign, Using what is after it, replaces the “%s” sign. Can I use multiple “%s” signs?…
Autism
Autism is a lifelong, mental disorder typically appearing before the age of three years. A person who has autism thinks differently than normal people will. They also find things like bright lights or loud noises stressful or uncomfortable, get anxious or upset about unfamiliar situations and social events or take longer to understand…
Python print()
One traditional code beginners should always try is this: This will return “Hello World”. How it works The “print()” function returns whatever is inside it. Text inside the quotes will return whatever is inside it (things like print(f’1+1 is {1+1}’) will be explained later.) Try this one: Did it print…
Global Warming
Global warming is a increase in the earth’s temperature usually due to the greenhouse effect caused by increased levels of carbon dioxide, CFCs, and other pollutants. The greenhouse effect The greenhouse effect is a warming of Earth’s surface caused by the existence of water vapor, carbon dioxide, methane, and certain…
Cement
Cement is a substance used for construction that sets and hardens to other materials to bind them together. Cement is rarely used on its own, but rather to combine sand and gravel together. Cement mixed with mass produces, or with sand and gravel, produces concrete. Cement Uses Cement can be…
Resistors
A resistor is a device having a planned resistance to the passage of an electric current. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, and stop transmission lines. You can also calculate the value of a resistor. Here is the resistor color code: Color Digit…
8 Tips For Mental Math
The “9-trick”: To add 9 to any number, first add 10, and then subtract 1. Can you think of an easy way to add 76 + 99? Change it to 75 + 100. How about 385 + 999? How would you add 39 + 28 in your head? Let 39 become 40… which reduces 28 to 27. The…
Python Built-In Functions
Function Descriptionabs(): Returns the absolute value of a numberbool(): Returns the boolean value of the specified objectchr(): Returns a character from the specified Unicode code.eval(): Evaluates and executes an expressionexec(): Executes the specified code (or object)float(): Returns a floating point numberinput(): Allowing user inputint(): Returns an integer numberlen(): Returns the…
Cinnamon
Cinnamon is one of the world’s most popular spices. Without it, Christmas and Thanksgiving might as well become tasteless. Cinnamon is harvested from the inner bark of a tropical evergreen plant. Cinnamon contains many compounds that have a positive effect on health. Studies have found that cinnamon might help balance…
