[Tutor] Using a Blackjack Chart...

Prasad, Ramit ramit.prasad at jpmorgan.com
Wed May 23 15:56:34 CEST 2012


[snip]
> > How can I best utilize such a chart in the Python program?  Lists,
> Tuples,
> > Dictionary
> > or perhaps, a database format such as SQL?  I tried using MySQLdb but
> was
> > unable
> > to use it since I am using Ubuntu 10.04.4 (Linux) as my main OS.  My
> other
> > OS is
> > Windows XP.

[snip] 

> As to mysql it works fine on linux.  If your system doesn't have mysql
> you can use synaptic package manager  to get it  Look for
> mysql-server, mysql-client and python-mysqldb
> 
> import MySQLdb as mdb

Or even more simply, why not use SQLite? It is built into Python
and will be portable for anywhere that Python is. 

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list