Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Using raw strings
Post: RE: Using raw strings

Thanks snippsat. I think my biggest problem was not knowing that \' is an escape character. Knowing this makes sense as I can see that '\' could never be seen as a valid string because there is no clo...
wookie General Coding Help 7 3,660 Nov-10-2018, 10:54 PM
    Thread: Using raw strings
Post: RE: Using raw strings

Thanks again stullis - that's just what I wanted to know. I had not read that before (but I've found it and read it now), there is more to raw strings then I thought.
wookie General Coding Help 7 3,660 Nov-10-2018, 07:03 PM
    Thread: Using raw strings
Post: RE: Using raw strings

Thanks for your reply stullis, I thought it must be something like that. However, in this case I'm not trying to get a program to work but trying to understand exactly why this behaviour occurs. I tho...
wookie General Coding Help 7 3,660 Nov-10-2018, 02:22 PM
    Thread: Using raw strings
Post: Using raw strings

I wonder if anyone can tell me why the following happens: If I run the code path = r'C:\Users\New\Andys Docs\Python\Datafiles' textfile = 'shortmusic' fullfilename = path+'\\'+textfile+'.t...
wookie General Coding Help 7 3,660 Nov-10-2018, 12:00 PM
    Thread: Caesar Cypher--- I don't understand why it doesn't work
Post: RE: Caesar Cypher--- I don't understand why it doe...

Just to amplify LeShakal' response: The computer doesn't have a brain and therefore doesn't 'understand' anything. It reacts to whatever program is running at the time - in this case the Python interp...
wookie General Coding Help 12 5,886 Nov-03-2018, 12:41 PM
    Thread: Caesar Cypher--- I don't understand why it doesn't work
Post: RE: Caesar Cypher--- I don't understand why it doe...

The error message contains all the information you need. The variable clearrext_lowercase is indeed not defined as you have only used it in order to transfer its contents to cleartext without previous...
wookie General Coding Help 12 5,886 Nov-02-2018, 01:29 PM
    Thread: Absolute Beginner Python Question
Post: RE: Absolute Beginner Python Question

@snippsat - OK thanks for that.
wookie General Coding Help 5 3,687 Nov-02-2018, 12:09 PM
    Thread: Absolute Beginner Python Question
Post: RE: Absolute Beginner Python Question

j.crater is correct. The output from the Python input() statement is a string whereas your program needs the user to have entered a decimal number. As also pointed out, the first input() statement is ...
wookie General Coding Help 5 3,687 Nov-01-2018, 04:52 PM
    Thread: No Module of this name found
Post: RE: No Module of this name found

Thanks Snippsat. I updated pip as per the instructions at the end of the pillow installation - which seemed fine. I then reinstalled pillow (with a small 'p' as per your post). Both modules are now in...
wookie Data Science 4 10,712 Oct-31-2018, 07:17 PM
    Thread: No Module of this name found
Post: RE: No Module of this name found

Many thanks. Numpy installed fine but I got loadsa and loads of (to me) gobbledygook when I tried to install Pilllow, which I have included in full below: PS C:\Users\New> pip install Pillow Colle...
wookie Data Science 4 10,712 Oct-31-2018, 04:59 PM
    Thread: No Module of this name found
Post: No Module of this name found

I entered the code for a spirograph printing program which was in the book "python playground" by Mahesh Venkitachalam only to find that it would not run. The error: Error:Traceback (most recent call ...
wookie Data Science 4 10,712 Oct-31-2018, 03:39 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020