Questions tagged as 'python'

1
answer

How to increment number from a button click

I want a button that adds '' +1 '' to the label that is displayed in the tkinter Window, but I do not know very well how to do it and I did not find anything on Google, what I understood did not return what I 1x it changes the value to 1,...
asked by 28.04.2017 / 08:05
1
answer

Generate list / array bringing all combinations of n elements taken p to p in python 3

Example: A B C D 4 elements result: WITH TWO ELEMENTS AB B.C AD BC BD CD WITH THREE ELEMENTS ABC ABD ACD BCD     
asked by 30.04.2017 / 01:52
2
answers

Delete and Query function- Python

I have to do a simple program in Python. In the case of a library, however I am having difficulty in querying and deleting. I honestly stuck, tried several ways but I could not. My code is like this, what's wrong with me? livro=[] opc = 0 i...
asked by 25.05.2017 / 05:58
1
answer

TKiNTER - How to save string from Entry ()

I have a problem with tkinter, I am not able to save the value of an Entry () in any variable so that I can use the name of that file to create a TXT. Follow the code: def criarPL (): global nome_pl def salvar(): arq = open(...
asked by 11.05.2017 / 00:09
2
answers

SyntaxError = Invalid Syntax in variable name

LadodoQuadrado = input("Digite o valor correspondente ao lado de um quadrado: " variavel = float(LadodoQuadrado) x = LadodoQuadrado * 4 y = LadodoQuadrado ^ 2 print("perímetro:", x, "área:", y) When I have run the program, it says "SyntaxEr...
asked by 26.04.2017 / 02:33
1
answer

How do I integrate my Django project with Scrapy? [closed]

I want to develop a simple project using Django where I will create a web page and this page will capture data from other pages. The problem is that I can not integrate Scrapy with Django .     
asked by 26.04.2017 / 14:28
1
answer

Installing openalpr module

Good evening developers. I need to download a module for Python, but I'm not getting it, I searched the internet and especially in StackOverflow in English, but it did not help, if anyone can help me I'll be grateful. Edit: Since yesterday I...
asked by 10.04.2017 / 04:20
2
answers

How to create a user-sized tray and display it as text using python?

I'm trying to create a program in Python 3.6.1 that creates a tray according to the size entered by the end user and prints the result in the shell. It needs to be displayed as text, and you can not use any library. As much as the library is...
asked by 14.04.2017 / 09:01
2
answers

How to make python select the largest number in a set?

Good afternoon, I'm inputting numbers in python, but I do not know how to do it to aggregate them to a set and then have python decide which is the largest number in the list. Thankful     
asked by 18.04.2017 / 19:01
1
answer

Processing of text [duplicate]

I have the following scenario: I have a variable with a text inside. I separate this text by words inside an array , with this I need to validate how many times each word appears in the text. I managed to do it, but there is another detail, I...
asked by 10.06.2017 / 00:57