« first day (745 days earlier)      last day (1443 days later) » 

1:15 AM
0
Q: 196-Algorithm Program

PythonMasterAttempting to see whether using 196 as a respectively in my program will have a result or not, I made a simple function to test it. Now the 196-Algorithm requires this: Take any positive, two-digit integer, a Take a and reverse it (for example 23 becomes 32) Now add the new number to a Repeat t...

 
1:33 AM
-1
Q: Python import sounddevice as sd (ImportError: No module name sounddevice)

user996061 down vote favorite I have python code that is running on raspberry pi B++ that uses the sounddevice library that lets you play and record sounds with python. I have successfully installed the modules. I can confirm through the python command line and enter import sounddevice as sd is works with...

 
 
3 hours later…
4:24 AM
0
Q: Python audio import sounddevice as sd (ImportError: No module name sounddevice)

TondyI am trying to use a raspberry pi to receive microphone input and add an effect outputting a low pass audio filter effect on the microphone input in real time. I have python code that is running on raspberry pi B++ that uses the sounddevice library that lets you play and record sounds with pytho...

 
5:06 AM
0
Q: Fuzzy full-text search for fuzzy bears in pure Python

tacI am aware of the Python modules galore to do this, but this was partially a learning experience and partially all the functionality I need and no more. I'm writing a simple interpreter for a Forth-like language, and because my CLIs are of the most high quality,[citation needed] I need to make t...

 
 
2 hours later…
7:05 AM
hame nahi aati hia
nahi aati hia
ye google tranlator se copy ki hia line
 
user5846743
3 messages moved from [[iOS][Android][ChaosOverFlow]](chat.stackoverflow.com/rooms/26424/iosandroidchaosoverflow)
 
0
Q: Python. Is it acceptable to use nested functions instead comments to show steps inside another function?

4ellMaybe I'm wrong, but I think sometimes code like this @task def log_request(label, target, request_as_dict): def detect_flood(): ''' In general this task do not process misuse. But it can send an alarm to another celery task if something strange happened. '''...

 
 
5 hours later…
12:28 PM
anyway now it works for me...
don't know why people prefer arguing then helping
@ntohl Google wasn't helping check the chat history log, OH MY DAYS !
what a pointless argument !, bye
 
4 messages moved from C#
 
 
1 hour later…
1:48 PM
0
Q: Modify and import as numpy.ndarray a txt file in python

SeFTo import the data contained into the file my_file.txt that have the form: Label[0] = 0.980252 Label[1] = -nan Label[2] = -nan Label[3] = -nan Label[4] = 0.664706 Label[5] = -nan Label[6] = -nan Label[7] = -nan Label[8] = -nan Label[9] = -nan Label[10] = -nan Label[11] = 0.800183 Label[12] = -n...

 
2:06 PM
0
Q: How to get around Python's round() limitation

GabrielI'm trying to come up with a general way to correctly round floats with Python, given the known limitation of round(): Note: The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact...

 
 
2 hours later…
3:38 PM
-1
Q: if condition is not working in my python code

JOSHY T RI am trying to write a simple tkinter GUI for displaying some texts while selecting specific radio buttons. In my code I have 4 if conditions, but among them only two is working. I tried to find out the reason for remaining 'if' conditions' problem, but no reasons coming to my thoughts. Can anyon...

 
 
2 hours later…
5:27 PM
0
Q: How to get rid of the memory error?

Ruler Of The WorldI have the following code: SortedDict = (list(OrderedDict((sub[0], sub) for sub in sorted(zip(moneydict, winningsdict, bettingdict1, bettingdict2, bettingdict3, bettingdict4, bettingdict5, bettingdict6, bettingdict7, bettingdict8))).values())) with moneydict, winningsdict, bettingdict1, betti...

 
5:40 PM
0
Q: Nondeduplicating mutual membership testing

tacPython sets are magical things. Immutable, deduplicating data stores with handy operator overloads for &, ^ and |. Specifically among the others, sets overload the & operator to do mutual membership tests like so: >>> set("asd") & set("abc") {'a'} This is endlessly handy, but the huge downsid...

 
6:09 PM
0
Q: Python Line Comparison

Meg.PazzagliaI have embedded a line in all of my files of code that contains an double within a string. Each time I make a minor change I change the number after the decimal, and before if its a major change. Now I would like to create a Program to compare them. For example: def all_same(valuesMaj): val...

 
 
2 hours later…
7:40 PM
0
Q: Optimizing a sigfig counter

inuashadecided to make something to count the significant figures in a number to see how easily it could be done, but I think there may have been a better way of going about it or that a portion of this code could be done better or is simply not needed. Any advice even just for conventional purposes is ...

-1
Q: Taking a square of a number in python?

user6025404So far I have this for my code: def square(x): import math math.exp(x) return x**x () x = input ("enter your x value: ") print ("the value of of x squared is: ", square(x)) x = float(x)

 
 
4 hours later…
11:31 PM
0
Q: Text Based: Player vs Player Tic-Tac-Toe

AustinBJust looking for a review on my code, its currently only player vs player, but I'll be working on the AI soon enough. Functions edit_name, tutorial, and AI have been left out as I haven't started work on them. class tic_tac_toe: board = [" "," "," ", " "," "," ", " ...

 

« first day (745 days earlier)      last day (1443 days later) »