Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 24 of 24
Search took 0.01 seconds; generated 1 minute(s) ago.
Search: Posts Made By: al1986
Forum: Python Apr 7th, 2008, 7:42 PM
Replies: 4
Views: 246
Posted By al1986
Re: New to programming, well kind of..

As I'm sure you know, the best way to learn programming is to actually do stuff. Python is a good choice of language for rapid application development (RAD). With the interactive interpreter, you can...
Forum: Python Apr 6th, 2008, 10:36 PM
Replies: 2
Views: 200
Posted By al1986
Re: Which Flavor: CPython or IronPython and Exec Opts

Given the goals you mentioned, I'd say you'd be fine just sticking with CPython. Most games which can be scripted using Python tend to use CPython (and I imagine Oblivion is no different). What sort...
Forum: Python Aug 1st, 2006, 5:58 PM
Replies: 4
Views: 274
Posted By al1986
thanks for the help, i'll give what you suggested...

thanks for the help, i'll give what you suggested a try :)
Forum: Python Aug 1st, 2006, 3:09 PM
Replies: 4
Views: 274
Posted By al1986
pygame half-pipe game

hey,

i'd like to make a simple 2D half-pipe game using pygame. this is what inspired me: http://www.gmaxskateboarding.com/game.asp

however, i'm not sure about the maths involved in coding this kind...
Forum: Python Jul 4th, 2005, 11:19 AM
Replies: 6
Views: 240
Posted By al1986
Change the file extensions from .py to .pyw, that...

Change the file extensions from .py to .pyw, that should do it.
Forum: Python Jun 12th, 2005, 7:53 AM
Replies: 44
Views: 1,248
Posted By al1986
You could also take a look at this...

You could also take a look at this http://www.lysator.liu.se/~astrand/projects/pyobfuscate/
Forum: Python May 23rd, 2005, 7:33 PM
Replies: 19
Views: 575
Posted By al1986
I've not actually got around to reading it yet,...

I've not actually got around to reading it yet, but IIRC Game Development With Python...
Forum: Python May 18th, 2005, 5:06 PM
Replies: 12
Views: 397
Posted By al1986
Text translation often involves the 'translate'...

Text translation often involves the 'translate' method of the string type, as well as the 'maketrans' function from the string library.
Forum: Python May 5th, 2005, 8:08 PM
Replies: 15
Views: 696
Posted By al1986
An automated Googlewhacker might make a nice...

An automated Googlewhacker might make a nice project (see example http://www.uselesspython.com/showcontent.php?category=17)

Don't forget about simple encryption algorithms such as ROT13 (if you can...
Forum: Python May 5th, 2005, 7:48 PM
Replies: 15
Views: 696
Posted By al1986
How about an anagram generator? It'd go something...

How about an anagram generator? It'd go something like: -

1.) Prompt the user to enter a word
2.) Generate all permutations of the letters (using recursion)
3.) Check each newly constructed word...
Forum: Python May 3rd, 2005, 8:54 PM
Replies: 10
Views: 359
Posted By al1986
You could do something like: if...

You could do something like: if vars().has_key("x"):
# Do something But I reckon exception handling would be a better option.
Forum: Python May 3rd, 2005, 1:24 PM
Replies: 21
Views: 521
Posted By al1986
The reversed() function returns an iterator...

The reversed() function returns an iterator object. Try invoking a next() method on this object. Alternatively, you can loop through the items by doing for i in mysortedlist: print i
Forum: Python Apr 6th, 2005, 10:04 AM
Replies: 9
Views: 288
Posted By al1986
How about the Python Quick Reference?...

How about the Python Quick Reference? http://rgruet.free.fr/PQR24/PQR2.4.html
Forum: Python Apr 5th, 2005, 12:16 PM
Replies: 5
Views: 338
Posted By al1986
If I understand your problem correctly, you can't...

If I understand your problem correctly, you can't find the length of each item in the list due to the type of one of the items. Item #2 is an integer, and calling the len function with an integer...
Forum: Python Apr 3rd, 2005, 8:45 PM
Replies: 3
Views: 181
Posted By al1986
I'm not doing your homework for you am I? A few...

I'm not doing your homework for you am I? A few hints...

[ [], [], [], [] ]

The above code creates a nested list, call it 'l'. Imagine the list indexed by l[0] is used to store player surnames. To...
Forum: Python Mar 30th, 2005, 3:53 PM
Replies: 2
Views: 189
Posted By al1986
You can change the current working directory by...

You can change the current working directory by doing

>>> import os
>>> os.chdir(path)


Changing directory shouldn't be necessary, though. Try adding the directory in which
your module resides to...
Forum: Python Mar 7th, 2005, 12:31 PM
Replies: 29
Views: 908
Posted By al1986
You could generate a string containing all the...

You could generate a string containing all the punctuation characters by doing:

>>> import string
>>> punc = string.punctuation
>>> punc
'!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'


Convert the original...
Forum: Python Mar 6th, 2005, 3:43 PM
Replies: 29
Views: 908
Posted By al1986
As far as I know, in versions of Python prior to...

As far as I know, in versions of Python prior to 2.4, you have to import the sets module. In version 2.4, they're...
Forum: Python Mar 6th, 2005, 8:26 AM
Replies: 29
Views: 908
Posted By al1986
I think you can remove duplicate words easily...

I think you can remove duplicate words easily enough using the 'set' data type. e.g.


s = "this this is just a test test"
mySet = set(s.split()) # Create a set of unique strings
print "...
Forum: Python Mar 5th, 2005, 8:20 AM
Replies: 29
Views: 908
Posted By al1986
Couldn't you just use the "count" method of the...

Couldn't you just use the "count" method of the string type?
e.g.

s = "h h h"
s.count("h")

(returns 3)
Forum: Python Feb 26th, 2005, 6:24 PM
Replies: 1
Views: 179
Posted By al1986
Simple mistake - it looks like you've used a...

Simple mistake - it looks like you've used a capital "I" in the if statement.
Forum: Python Feb 20th, 2005, 12:02 PM
Replies: 1
Views: 251
Posted By al1986
It's just a wrapper over SDL. I like the tutorial...

It's just a wrapper over SDL. I like the tutorial at http://www.tomchance.org.uk/writing/pygame
Forum: Python Feb 18th, 2005, 11:47 AM
Replies: 6
Views: 543
Posted By al1986
As a side note, it's worth mentioning that 'IDLE'...

As a side note, it's worth mentioning that 'IDLE' is a refernece to Eric Idle, one of the members of Monty Python. But I guess you Pythonistas knew that already!
Forum: Python Feb 15th, 2005, 5:49 PM
Replies: 7
Views: 333
Posted By al1986
What's QBASIC like?

What's QBASIC like?
Showing results 1 to 24 of 24

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC