Questions tagged as 'python-3.x'

1
answer

Problem with Pytest

I'm trying to apply pytest on a project that uses the Bhaskara Formula, because it's giving it error and I'm not able to solve it. Then the codes will go with the error. Thank you. import math class Bhaskara: def delta(self, a, b, c):...
asked by 20.11.2017 / 20:37
1
answer

Problem with hashlib

I have a problem with using 'hashlib' from python, since I'm comparing the hashes generated with the line below, with the hashes generated on the site: ' link ', but when comparing the results I see they are different. Code used to generate...
asked by 06.09.2017 / 19:50
1
answer

Exporting data in json or txt, in python?

I need help learning how to export data from an object. At first I need to export in type "txt" and / or "json", but I could not succeed in either. The code: #coding = utf-8 import json . . . def arquivo(lista_nomes): print(json.dump...
asked by 10.09.2017 / 02:35
1
answer

Input of numbers on the same line in python [closed]

I need to read three values in a single variable, the third with a comma. Input: Two rows of data. In each line there will be 3 values, respectively two integers and a value with 2 decimal places. EX: 12 1 5.30 Exit Value: EX: VALUE TO PAY: R...
asked by 19.08.2017 / 23:17
0
answers

How to stop a progressbar in Tkinter

I've always been developing in JS a little lost here in Python, if you can help me ... I wanted to leave the button close without an event until the progress bar is gone, and the progress bar on completion is "indeterminate" #Loading pa...
asked by 13.08.2017 / 22:34
1
answer

Variable reset

I am doing a search in the SQLITE3 data loop inside my program and it returns values into my variable, however when I make a condition to be executed for when the value is filled it returns empty, I am beginner in BD Python and Kivy: class St...
asked by 09.08.2017 / 00:30
0
answers

Plot user per week pandas

I have a csv file that basically follows below, I'm trying to separate user's iteration number by week and plot a graph for each user. Hora Nome completo 8/08/2017 19:00 Joao 8/08/2017 19:00 Joao 8/08/2017 19:00 Joao 8/08/2017 18:55 Lucas 8...
asked by 09.08.2017 / 22:48
1
answer

sum recursive sequence

I'm implementing a recursive code that sums the following sequence: x + x ^ 2/2 + x ^ 3/3 ... x ^ n / n, for this sum, I thought of a definition, combining two recursive functions, like it goes down, but it is returning very high values, for n &...
asked by 19.08.2017 / 17:59
1
answer

Python administrator privileges [closed]

Is there any way or command to run a Python script with admin privileges?     
asked by 02.01.2017 / 18:19
0
answers

Python session system

Is there, in Python, a session system as it exists in PHP? I need to do an access control for a Python application that uses the database. I have already developed a similar (but web) project with PHP and used its session feature and found it...
asked by 04.08.2017 / 18:37