On 2013-11-02 20:18, Byron Ruffin wrote:
The output generates a sentence made up of words chosen randomly from
lists. I am having trouble getting a space between each of the
words. Should I be thinking about .split? Here is the code (ignore
indent errors as it was copied and pasted) Thank you:
On Sat, Nov 02, 2013 at 10:18:01PM -0500, Byron Ruffin wrote:
> The output generates a sentence made up of words chosen randomly from
> lists. I am having trouble getting a space between each of the words.
> Should I be thinking about .split? Here is the code (ignore indent errors
> as it was cop
On 03/11/13 03:18, Byron Ruffin wrote:
The output generates a sentence made up of words chosen randomly from
lists. I am having trouble getting a space between each of the words.
You probably want to look at the join() method of strings.
It joins a list of strings together using a separator...
On 03/11/2013 03:18, Byron Ruffin wrote:
The output generates a sentence made up of words chosen randomly from
lists. I am having trouble getting a space between each of the words.
Should I be thinking about .split? Here is the code (ignore indent
errors as it was copied and pasted) Thank you:
The output generates a sentence made up of words chosen randomly from
lists. I am having trouble getting a space between each of the words.
Should I be thinking about .split? Here is the code (ignore indent errors
as it was copied and pasted) Thank you:
import random
def wordList():
adj1 =