Turn string into array with split Posted on October 18, 2015 at June 27, 2016 by Elijah 2308 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
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…
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 =…
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.
Identify USB device and discover its name and port Posted by Elijah - October 17, 2015 0 Download latest PyUSB from : http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-beta-2/pyusb-1.0.0b2.tar.gz/download Place file “pyusb-1.0.0b2.tar.gz” on your desktop gunzip <pyusb-1.0.0b2.tar.gz |tar xvfp - cd pyusb-1.0.0b2 sudo ./setup.py…
Unboxing Posted by Elijah - August 15, 2015 5 First I unboxed my raspberry pi and took it out of it’s bag. The first thing I thought when I…