Skip to content

Instantly share code, notes, and snippets.

@theresaanna
Forked from danlurie/gist:9079480
Created February 18, 2014 20:37
Show Gist options
  • Save theresaanna/9079559 to your computer and use it in GitHub Desktop.
Save theresaanna/9079559 to your computer and use it in GitHub Desktop.
In [1]: age_code = "[CONY_48]"
In [2]: gen_code ="[CONY_49]"
In [3]: from code
code codecs codetools
codeconvert_dl_130211 codeop
In [3]: from codeconvert_dl_130211 import ttestconv
In [4]: ttestconv('/Users/daniel.lurie/Desktop/C3SRS/c3sr_ag_t.txt', "[CONY_49]")
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/Users/daniel.lurie/Desktop/C3SRS/<ipython-input-4-e415d530741a> in <module>()
----> 1 ttestconv('/Users/daniel.lurie/Desktop/C3SRS/c3sr_ag_t.txt')
/Users/daniel.lurie/Desktop/C3SRS/codeconvert_dl_130211.py in ttestconv(oldfile)
14 #Read in Variables (Case Sensitive)
15
---> 16 print gen_code
17 print age_code
18 #gen_code = raw_input("Please Enter Gender Code (Case Sensitive):")
NameError: global name 'gen_code' is not defined
In [5]: print gen_code
[CONY_49]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment