« first day (896 days earlier)      last day (4055 days later) » 

12:36 AM
this is unfairly closed
-4
Q: email connection keeps getting lost

Mike SandersThe yahoo server keeps disconnecting, but the gmail one works just fine. Can you look at my code and see any errors: a=int(raw_input("How many texts are we sending this person?: ")) b=raw_input("what's your mesage?: ") c=raw_input("what's their email?: ") d=raw_input("what's your...

prolly the reason was OP mentioning a typo
 
 
5 hours later…
5:55 AM
morning
 
 
9 hours later…
3:15 PM
I'm very new to Python I've been watching tutorials, etc. Can anyone tell me the best way to get the position of the max value in a list of ints. I know how to return the max value using max(listname) but how do I get the position of that value in my list? Any help is appreciated!!
 
my_list.index(max(my_list)) perhaps?
 
Thanks, I just reformed my search and found that, so I'm trying it now. Thank You!!
Yes, that worked perfectly :D
 
cool show
 
3:57 PM
Do you recommend a better way to look for matching letters in two strings than this? This is never evaluating to true for me and I'm sure Python has better ways to iterate and keep track of the number of 'matches' Any suggestions?
while j < len(cipherString):
if cipherText[j].strip() == cipherString[j].strip():
count = count + 1
j = j + 1
 
4:08 PM
NM - found this which worked well and is a 'little more efficient' I guess...
coinCount = [x == y for (x, y) in zip(cipherText, cipherString)].count(True)
 
 
1 hour later…
5:09 PM
do you know what it does? :)
 
Yes, I was able to get the number of time each letter in each list matched up. Can you tell me the best way in Python to write a for loop that says:
for i=0, i < length, i+4
I looked up for loops, but it wasn't what I need
 
i would suggest going through a Python tutorial, actually :)
 
Yep, I have been, thanks
 
Zac
Has anyone here used the python text to speed library pyttsx ?
 
for index, digit in enumerate(range(0,4)):
print index + 4

perhaps
 
5:27 PM
Haai
 
: )
I was just thinking
I seem to always hear of people referring to DDOS attacks as being perpetrated by 'hackers'
But your not really 'hacking' anything, so to speak. Are you/
 
5:56 PM
I've got a question
Do text files contain data that can be read in Python ?
Such as columns, and rows
I've got a text file with stuff all in the first column. But I need to add like a corresponding variable in the third column ( Want a space between them). Could I insert the stuff I want right into the third column, first row. And then just write data down that column?
Anyboody?
 
Okay, this is killing me....I have a very long string of lowercase letters. I'm trying to count the frequency that each letter occurs, but I only want every 4th letter. I have a key length of 4. So for this string, I want to record the letters into a char list at positions string[0] string[4] string[8] and so on...But then I have to shift over 1 and record those chars into a list at positions [1], [5], [9], etc. Eventually I will end up with 4 char lists.
 
how do i create a bitmap button with attached label wxpython
 
Oh-oohh
 
In Java, I would do this: for(i=0; i<4; i++) list.append(charAt(i)); i=i+4; while (i < strLen) list.append(charAt(i)); i + 4; (end while) print list
I have no idea how to do that in python and the tutorials are not helping :(
 
7:03 PM
i have made a small program in python so can i somehow make a .dll of it and use it in my other c# program
 
7:40 PM
Anybody around?
 
8:34 PM
Ehh.
 
m00
 
Woof
Hey @dirt, do you know how to specify a column and row in a text file, that python can write to?
 
8:51 PM
I dont know how to do that in any language ;) unless by column you mean position and by row you mean line number in which case sure but I actually dont know any python sorry
But fopen/seek might be what u want... Search google.com/…
 
@dirt Alright, thanks.
Yeah. I don't mean I want an actual column to appear in the text file, just that the first letter goes into the first space, followed by a blank space, then it's corresponding variable.
And then the same for all the others, just a new line for each
 
 
1 hour later…
10:12 PM
Anyone know how i could do this
def checkSubset(answer, letters):
    return not (Counter(answer) - Counter(letters))
without using counter() just something more simple
It's basically seeing i fyou can spell a word out of a jumble of letters,
ie
checkSubset('dog','odgr')
When i say simple
I mean the idea of how to do it without counter.
 
11:02 PM
checkSubset('dog','odgr')
>>True
 
Zac
How do I link a section of this chat from yesterday to someone ?
nevermind
worked it out
 
11:23 PM
@jack Just added an answer to your question to do it without collections.Counter
 

« first day (896 days earlier)      last day (4055 days later) »