[EMAIL PROTECTED] wrote:
So how would I go about have 5 strings, and running a program that will
randomly pick one of those to print?
import random
text = Perhaps reading the manual is a good idea?.split()
random.choice(text)
'is'
random.choice(text)
'reading'
random.choice(text)
'a'
[EMAIL PROTECTED] wrote:
Im at the end of chapter 3 of Python Programming For The Absolute
Beginner, Michael Dawson and he asks to make a fortune program that
displays a fortune each time its ran, and to have 5 unique fortunes.
Whats confusing is that, he never discussed how to do this. The
[EMAIL PROTECTED] writes:
Im at the end of chapter 3 of Python Programming For The Absolute
Beginner, Michael Dawson and he asks to make a fortune program that
displays a fortune each time its ran, and to have 5 unique fortunes.
Whats confusing is that, he never discussed how to do this.
[EMAIL PROTECTED] writes:
Im at the end of chapter 3 of Python Programming For The Absolute
Beginner, Michael Dawson and he asks to make a fortune program that
displays a fortune each time its ran, and to have 5 unique fortunes.
Whats confusing is that, he never discussed how to do this.