Turn string into array with split Posted on October 18, 2015 at June 27, 2016 by Elijah 2139 0 textWithCommas = “bee,apple,pear,dog,carrot,robot” wordList = textWithCommas.split(“,”) print “the second item is : ” + textWithCommas[1] Keep Reading : Identify USB device and discover its name and port Serial Commands used by our Satellite transciever. while loop GPS RESPONSE CODE ORDER
servoTurn.Py – a simple python script to turn a servo on a raspberry pi 3 Posted by Elijah - March 17, 2017 0 Turn a servo using a Raspberry Pi 3 GPIO using Python. Picks up where the Adafruit servo build instructions stop.…
Mesopotamia Posted by Elijah - February 28, 2017 0 For Mesopotamia : This page is a great resource, THE WESTERN TRADITION – Episodes #3 Mesopotamia and #4 From Bronze…
Wire camera to pi Posted by Elijah - October 24, 2015 0 Install camera software & configure pi One picture program One picture per blink cycle Print proto time on picture …
maserFire.py – Fire lasers with transistors and python on a Raspberry Pi 3 Posted by Elijah - March 17, 2017 0 Part two of five, "Rock, Paper, Lasers" 2017 Science Project. This is the basic laser python code.
Read email from a system pipe into python Posted by Elijah - August 15, 2016 0 #!/usr/local/bin/python import sys import email full_msg = “” for line in sys.stdin full_msg += line msg = email.message_from_string(full_msg) to =…