housewifehacker.blogspot.com
def housewife_hacker(Jessie):: October 2010
http://housewifehacker.blogspot.com/2010_10_01_archive.html
Mom and wife learning computer programming. Monday, October 25, 2010. Guess the Number Game Python. With inspiration from InventWithPython.com. I wrote a game to guess a number between 1 and 20 with six attempts. This simple game is good practice for a beginner. My code is written in Python 2.6. The example from the link is written in Python 3 syntax. What is your name? MyName = raw input() #get user name. Number = random.randint(1,20) #random number between 1 and 20. Print 'Take a guess.'. For personali...
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: Sorting Backbone subviews in Rails
http://housewifehacker.blogspot.com/2014/10/sorting-backbone-subviews-in-rails.html
Mom and wife learning computer programming. Sunday, October 5, 2014. Sorting Backbone subviews in Rails. I recently completed my solo project at App Academy, which can be seen here on Heroku. The first place I looked was the Backbone documentation. If you define a comparator, it will be used to maintain the collection in sorted order. This means that as models are added, they are inserted at the correct index in collection.models. Polls = Poll.all. If params[:answered] = "false". Learn Python the Hard Way.
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: Mutable versus Immutable Objects
http://housewifehacker.blogspot.com/2012/05/mutable-versus-immutable-objects.html
Mom and wife learning computer programming. Monday, May 7, 2012. Mutable versus Immutable Objects. Y = x # direct the reference of y to be the reference of x. Id(x) = id(y) # x and y point to same reference. X = 4 # change the value of x. Id(x) = id(y) # the id of x changed when we changed the value. X = y # the value of y did not change with x. Y = x # direct the reference of y to be the reference of x. Id(x) = id(y) # x and y point to the same reference. Xappend(4) #change x from [5] to [5, 4].
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: Simple Dictionary Practice: Is Anagram?
http://housewifehacker.blogspot.com/2012/05/simple-dictionary-practice-is-anagram.html
Mom and wife learning computer programming. Tuesday, May 15, 2012. Simple Dictionary Practice: Is Anagram? A dictionary is an unordered. Set of key: value pairs. Keys must be an immutable type. Values can be anything. Review on mutable versus immutable here. Sample dict = {} # creates an empty dictionary. Type( sample dict ). Sample dict['Name'] = 'Jessie' # creating a key:value pair. Sample dict['Age'] = 23 # another key:value pair. Age': 23, 'Name': 'Jessie'}. Age': 23, 'Name': 'Jessie'}. Sample dict&#...
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: November 2010
http://housewifehacker.blogspot.com/2010_11_01_archive.html
Mom and wife learning computer programming. Saturday, November 13, 2010. Caesar Cipher in Python Using ASCII. ASCII is how American computers store numbers, letters, certain commands, and symbols as numbers. A binary byte is eight digits long, consisting of only 1 and 0. When ASCII was developed, there were 2 8, or 256 possible characters for 8-bit (1 byte) personal computers. Unicode is used more commonly and extensively, but ASCII is sufficient or this exercise. Consult an ASCII Table. For x in input:.
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: February 2014
http://housewifehacker.blogspot.com/2014_02_01_archive.html
Mom and wife learning computer programming. Thursday, February 13, 2014. I know the title of this post may sound like random words thrown together, but it's actually a really cool activity to learn about recursion using the turtle module in Python (Linux users need to install tkinter). I've been learning about algorithms and abstract data structures as part of my faking a CS degree personal mission. Problem Solving with Algorithms and Data Structures. T = turtle.Turtle(). MyWin = turtle.Screen(). 4 Turns...
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: May 2012
http://housewifehacker.blogspot.com/2012_05_01_archive.html
Mom and wife learning computer programming. Tuesday, May 15, 2012. Simple Dictionary Practice: Is Anagram? A dictionary is an unordered. Set of key: value pairs. Keys must be an immutable type. Values can be anything. Review on mutable versus immutable here. Sample dict = {} # creates an empty dictionary. Type( sample dict ). Sample dict['Name'] = 'Jessie' # creating a key:value pair. Sample dict['Age'] = 23 # another key:value pair. Age': 23, 'Name': 'Jessie'}. Age': 23, 'Name': 'Jessie'}. Sample dict&#...
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: May 2014
http://housewifehacker.blogspot.com/2014_05_01_archive.html
Mom and wife learning computer programming. Saturday, May 31, 2014. App Academy: W-9D-2 - Being Accepted. Subscribe to: Posts (Atom). How To Think Like A Computer Scientist. Learn Python the Hard Way. App Academy: W-9D-2 - Being Accepted. Awesome Inc. template. Powered by Blogger.
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: October 2014
http://housewifehacker.blogspot.com/2014_10_01_archive.html
Mom and wife learning computer programming. Sunday, October 5, 2014. Sorting Backbone subviews in Rails. I recently completed my solo project at App Academy, which can be seen here on Heroku. The first place I looked was the Backbone documentation. If you define a comparator, it will be used to maintain the collection in sorted order. This means that as models are added, they are inserted at the correct index in collection.models. Polls = Poll.all. If params[:answered] = "false". Learn Python the Hard Way.
housewifehacker.blogspot.com
def housewife_hacker(Jessie):: December 2010
http://housewifehacker.blogspot.com/2010_12_01_archive.html
Mom and wife learning computer programming. Saturday, December 4, 2010. HousewifeHacker is now on Github. Thursday, December 2, 2010. Maketrans Python and Improved Caesar's Shift. Maketrans is used to translate strings, character for character. The characters can be symbols, letters, or numbers. The following short example is a Caesar's Shift moving backwards by two letters. First we need to import maketrans. From string import maketrans. Now define the translation. Parameters are strings, not lists.
SOCIAL ENGAGEMENT