RSS

Logical

26 Sep

I’ve hit some bumps in the learning python process. Lesson 26 was debugging code. I got most of it, but haven’t figured out how to import the python file in order to have the code work in python. Not sure if I’m being clear here….but I think I have to do something in python (like, importing a python script) for this part to work…

import sys
sys.path.append(“c:\\users\\cyndaminthia\\mushy”)
import ex26.py

sentence = “All god\tthings come to those who weight.”

words = ex25.break_words(sentence)
sorted_words = ex25.sort_words(words)

print_first_word(words)
print_last_word(words)
print_first_word(sorted_words)
print_last_word(sorted_words)
sorted_words = ex25.sort_sentence(sentence)
prin sorted_words

print_first_and_last(sentence)

print_first_and_last_sorted(senence)

Β 

Otherwise, I’ve moved on and am finally learning logic. That part is fun. No real issues yet.

Also, Andrew, if you’re reading this, I would love to try rooting my phone via your netbook. Thank you. πŸ™‚

 
Leave a comment

Posted by on September 26, 2012 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: