Re: [Tutor] Editing values from a dictionary

2014-02-26 Thread Krishnan Shankar
Hi Bob, >>> In [3]: print metadata["artist"] [u'The Incredible String Band'] <<< Here u' and ' is not something you can strip off as it is part of python datatype called UNICODE. Python prints a word or sentence in double or singles quotes when it is a STRING or UNICODE in interpreter. These are

Re: [Tutor] Beginner question

2013-08-12 Thread Krishnan Shankar
d went to the site to see the version of python used. My statement above is correct only if run in Python 2 and not in 3. Regards, Krishnan On Mon, Aug 12, 2013 at 11:01 PM, Krishnan Shankar wrote: > >def checkCave(chosenCave): > > print('You approach the cave...') &g

Re: [Tutor] Beginner question

2013-08-12 Thread Krishnan Shankar
>def checkCave(chosenCave): > print('You approach the cave...') >time.sleep(2) > print('It is dark and spooky...') > time.sleep(2) >print('A large dragon jumps out in front of you! He opens his jaws and...') >print() > time.sleep(2) >friendlyCave = random.randint(1, 2) >