Questions tagged as 'python-3.x'

2
answers

Problem with input in python

Good morning. I am creating a function that receives two parameters. Such a simple function that carries out the process of adding two numbers. But when I go to the console when I ask for the numbers I have to use two input. one for the first nu...
asked by 18.07.2017 / 04:25
1
answer

How to transform an api query saved with ElasticSearch into a text variable?

I want to transform the following result of a query into an API saved with ElasticSearch in a text to be used later. b'{"BTC":{"USD":2403.99},"ETH":{"USD":222.1},"DASH":{"USD":179.04}}' b'{"BTC":{"USD":2402.89},"ETH":{"USD":222.1},"DASH":{"USD...
asked by 13.07.2017 / 02:55
3
answers

Delete values from a list of lists

How can I eliminate the double values that appear in some lists? def selection_and_reproduction(poblacionNueva): puntuados = [ [calcularFitness(i), i] for i in poblacionNueva] #Calcula el fitness de cada individuo, y lo guarda en pares ordena...
asked by 04.08.2017 / 18:36
1
answer

Parsing NLP with external list

Having an input text that will pass through the grammar and the output must be all the entries that the grammar finds in the text. The problem is that my non-terminals are external list files and I can not find a way to do it. Example of a p...
asked by 31.08.2017 / 17:22
1
answer

How to use the matplotlib library

Good afternoon, I have to make a program that reads a .csv file with the following format:    15,10,10,15,20,25,25   20,20,10,10, -25,25,10 and generate the graph of audiogram . I have the following code: import matplotlib.pyplot a...
asked by 12.06.2017 / 23:46
1
answer

Convert script to .exe python

Well folks the fact is that I'm starting in this programming by learning python. And I've searched for information about how to make your sript executable on a computer where the interpetre is not installed. I have already read that for that the...
asked by 28.05.2017 / 20:58
2
answers

Python failed concatenation error

Hi, I'm new to programming in
asked by 01.06.2017 / 17:15
1
answer

Mention user that made the command with Discord.py

I'm trying to use Discord.py to program bots for Discord but I found the slight problem that I can not find any way to mention the user who "called" or performed the command. They told me that it was possible using ctx.message.author...
asked by 27.04.2017 / 09:05
1
answer

Do not run the event on Tkinter

I have a problem with Tkinter to execute the movement of the polygon with the arrows of the cursor, it does not generate an error, but it is not executed either. My code is: from tkinter import * tk = Tk() canvas = Canvas(tk, width=400, hei...
asked by 14.04.2017 / 19:22
1
answer

Send e-mail from mutt using Python

I've been working with the Mutt mail client for a while and trying to implement it in my Python script but something is giving me an error. First tell you that I have it configured well and that I can send e-mails from the console with the comma...
asked by 09.05.2017 / 12:03