Questions tagged as 'python'

2
answers

Sources of the standard Python functions

How can I find out the algorithm behind functions like split() and in in Python, because in my college there are some forbidden functions.     
asked by 01.12.2018 / 01:25
0
answers

Intermediate code generation - Verification recursion

Good afternoon, guys. I am in a compilers matter step which is the intermediate code generation of my grammar. After the steps of lexical, syntactic, semantic analysis. Basically I have the following code: from infixToPostfix import infixTo...
asked by 01.12.2018 / 16:03
1
answer

Filter python list

I need to remove elements from a list whose elements reference for removal are in another list: # Esta lista foi gerada por combinação lista original=[ (182361, 243148, 360624, 364188), (182361, 243148, 360624, 547083), (182361,...
asked by 12.11.2018 / 17:05
1
answer

Warning looping Python Pandas, How do looping differently?

Personally I'm doing this looping here: for i in range(1, len(candles)): if candles['askclose'][i]> candles['askopen'][i]: candles['Fechamento'][i]= 'alta' But the jupyternotebook always returns this warning and sometimes han...
asked by 07.12.2018 / 00:30
0
answers

Generate pseudorandom numbers [closed]

Having a pseudo-random number generator that generates a sequence of numbers x1, x2, ... in the interval [0,1]. How to turn these numbers into numbers y1, y2, ... in the interval [-11, 17]?     
asked by 06.11.2018 / 02:51
1
answer

Stand-alone Python software (.exe file) for non-python machines with GUI and TkInter

I am developing software using Python 3.6.5 and need to run it on machines that do not have python installed. It contains some libraries for machine learning and access and excel to MS. I've seen some solutions on the internet to convert it to...
asked by 08.11.2018 / 08:33
0
answers

What is an alternative to creating spreadsheets with random numbers in Python? using CSV [closed]

When creating spreadsheets with random values in Python , I made use of a script containing the openpyxl library (see below). I want to increase the speed of creation of random spreadsheets in python because the current method is very slow....
asked by 27.12.2018 / 00:26
1
answer

Speak which is the predominant color

Example: If the predominant color is red or red, a print appears saying it is red. The code works and returns a value in RGB, which I'm not getting and say which is the predominant color, Example: when the code returns the value in example: R...
asked by 31.10.2018 / 14:14
0
answers

How to modify the text of a button by pressing it?

I'm very new to this programming branch with graphical interfaces and I'm working on a project with Arduino ... The communication part is OK, however I can not do something simple like: Change both the color and the text of the button at the...
asked by 09.10.2018 / 22:22
1
answer

Return from a sub menu to the main menu of a function in Python

I created a simple Python application for an agenda system with Sqlite3. There are 3 files in the main menu agenda.py o contato.py and usuario.py that will log in to the system. In the file 'agenda.py' I log in the user b...
asked by 11.10.2018 / 00:30