[Tutor] Is this possible for a newbie?
Steven D'Aprano
steve at pearwood.info
Mon Jul 21 03:49:00 CEST 2014
On Sun, Jul 20, 2014 at 04:57:24PM -0400, keith papa wrote:
> Am a newbie to programming and I started learning python days ago. I
> have this idea I want to execute, am a big sport and fantasy fan and I
> wanted to create something that will make it things a little easy for
> me. My idea is simple I want to create a program that I can enter name
> and some information about a player, for example:
[...]
> I want to be able to ask the program which QB is best on my list and
> it give me the names of all the QB on my list, or ask for WR on my
> list and it gives me all the WR on my list, and also I want to be able
> to crossed out name simply by typing the players name. What do I need
> to lean in order to accomplish this? string, variable functions? feel
> free to ask any questions.
This sounds more like something for a database than for Python itself.
You can write Python code to talk to the database, and Python has
excellent libraries for a simple database, such as sqlite. But if you're
on a Linux system and can install Postgres, I'd just use that directly
and not worry about Python at all.
https://wiki.python.org/moin/DatabaseInterfaces
https://docs.python.org/2/library/persistence.html
http://www.postgresql.org/docs/7.4/static/tutorial.html
--
Steven
More information about the Tutor
mailing list