Questions tagged as 'python'

1
answer

Analyze numerical set looking for sequential numbers

I have a small part of the data below, sequence numbers: a = [(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15),(6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 20, 23, 24, 25),(1, 2, 3, 4, 10, 11, 12, 13, 14, 16, 17, 20, 22, 24, 25),(3, 4, 7, 8, 9,...
asked by 09.12.2017 / 21:48
1
answer

Calculation of sum of digits

   Write a program that receives an integer in the input, computes and prints the sum of the digits of this number in the output       Example:      >>>Digite um número inteiro: 123 >>>6       Tip: To separate the digits, r...
asked by 09.12.2017 / 18:10
1
answer

HTML alignment using Python

I need to align an HTML code , in some parts it comes totally "messy", example: <li><a href="dsadas">dsadaads</a></li><li><a href="dsadas">dsadaads</a></li><li><a href="dsadas">dsada...
asked by 18.12.2017 / 16:54
2
answers

Create function of hexadecimal and octal conversion function in python

Good night, I'm trying to do two functions one to convert hexadecimal numbers to decimals and one to convert octal numbers to decimals, this is my code: def hexadecimalparadecimal(n): decimal = 0 n = str(n) n = n[::-1] tam = le...
asked by 10.01.2018 / 04:27
0
answers

Extract names and import to an excel sheet

I need to read TXT files and remove from them names of people and their respective "functions" of the text. These are minutes of hearing, where I must find the parties 'names (Complainant and Claimant) and the name of the parties' Attorneys. I...
asked by 20.12.2017 / 19:58
1
answer

Solution to the Unisex Bathroom Problem in Python [closed]

Suppose you are at a party in the Public Calamity republic that has only one bathroom with n boxes, where box is a compartment with a toilet. The rule of the republic says that the bathroom can be used by both men and women, but not at the same...
asked by 06.12.2017 / 00:45
0
answers

What is the best way to scratch the Datasus site in Python?

The link is this: link I'm trying to send a POST through the requests with a dictionary containing the categories I want, but then the URL is still static. Do you think Selenium would be more suitable for this? Has anyone done anything l...
asked by 15.12.2017 / 17:07
0
answers

Blinking text in Tkinter / Collateral effect

Hello, I'm starting my studies in Python with the use of Tkinter. Get light on the answers / critics (rs!). I need to "blink" a text (blink), with a value, when it is the fastest (lap record). I searched for information in various places on how...
asked by 17.12.2017 / 13:48
0
answers

Problems with Push Notification and Django (vapid_private_key)

I was able to reproduce an example with the pywebpush repository to make Push notification. After breaking my head to understand, I managed to do it. However, when I tried to integrate with my django project, it did not roll. I believe it's so...
asked by 30.11.2017 / 16:06
1
answer

How to install PIP in Odoo's requirements.txt file

I want to install Odoo on a ubuntu 14.04 server. However, to work with Brazilian law, you must install some pip dependencies for the modules: pip dependencies for modules: Babel==1.3 Jinja2==2.7.3 Mako==1.0.1 MarkupSafe==0.23 Pillow==...
asked by 01.12.2017 / 04:38