Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: importing a list of numbers into python script
Post: RE: importing a list of numbers into python script

Quote:print(list) gives ['200, -200, 200. -200, 200'\n] I think that the single ' at the beginning just after [ and at the end just before \n means that it is a string.That might be why you are getti...
Intr0spective General Coding Help 8 4,546 Aug-21-2020, 04:14 PM
    Thread: I need advise with developing a brute forcing script
Post: RE: I need advise with developing a brute forcing ...

Quote:[Friday night ideas] if you have nothing positive to contribute, then don't waste your time. Ehm, not sure if the purpose of perfringo's message wasn't to actually kindly advise you on actually...
Intr0spective General Coding Help 11 5,050 Aug-21-2020, 03:56 PM
    Thread: Convert multiple decimal numbers in string to floats
Post: RE: Convert multiple decimal numbers in string to ...

(Aug-15-2020, 06:37 PM)Katy8 Wrote: (Aug-12-2020, 06:47 PM)Intr0spective Wrote: Hi, Are you trying to get 3 floats out of it? 1.2 then 3.4 and finally 5.6 Or any float e.g 1.23456? Yes to your fi...
Intr0spective Homework 6 3,531 Aug-16-2020, 10:06 AM
    Thread: Replacing a few characters of a specified character but not all of them from a string
Post: RE: Replacing a few characters of a specified char...

(Aug-12-2020, 06:41 PM)fatherted99 Wrote: Format in which username and password is stored in a .txt file ['username', 'password'] Not sure if this will be of any help to you: This looks like a pla...
Intr0spective Homework 7 3,198 Aug-12-2020, 07:11 PM
    Thread: Convert multiple decimal numbers in string to floats
Post: RE: Convert multiple decimal numbers in string to ...

Hi, Are you trying to get 3 floats out of it? 1.2 then 3.4 and finally 5.6 Or any float e.g 1.23456?
Intr0spective Homework 6 3,531 Aug-12-2020, 06:47 PM
    Thread: Dictionary lookups exercise (PyBite #109)
Post: RE: Dictionary lookups exercise (PyBite #109)

Hi folks, Sorry for reviving this post - it was very interesting to read the answers etc. but i am actually very keen to know what way of formatting the strings would you recommend to stick with? I u...
Intr0spective Homework 14 5,771 Aug-10-2020, 06:41 PM
    Thread: Trying to find first 2 letter word in a list of words
Post: RE: Trying to find first 2 letter word in a list o...

No worries, Since you mentioned that the code comes from the book - i have just had a look at it again - in fact you can get the code working with ,,return " ",, too. Have a look at the code in your...
Intr0spective General Coding Help 7 3,725 Aug-09-2020, 07:02 PM
    Thread: Trying to find first 2 letter word in a list of words
Post: RE: Trying to find first 2 letter word in a list o...

Hi, Quote:first iteration passing over "this" produces a False and so the function should continue on to the second word in the list "is", This is not happening, hence the code does not work. The f...
Intr0spective General Coding Help 7 3,725 Aug-08-2020, 05:56 PM
    Thread: Pattern Require Last Line Print() why?
Post: RE: Pattern Require Last Line Print() why?

Hi, The below is my interpretation of the code, I am obviously not saying that there is anything wrong with the OP's code. I actually learnt a lot about print() tinkering with his code as well as for...
Intr0spective General Coding Help 4 2,426 Aug-08-2020, 09:08 AM
    Thread: Help with name error
Post: RE: Help with name error

Hi, All credit to DPaul, i would not figure it out, i mean rather later than sooner. Simply, ,,correct,, is a variable of local scope, that means it is visible to the code within the function defin...
Intr0spective General Coding Help 2 1,554 Jul-25-2020, 07:04 PM

User Panel Messages

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