Questions tagged as 'python'

1
answer

Bank Account Validation Rules [closed]

Where do I get the official bank account validation rules and check digit? After a lot of Google search, I can only find rules ten years ago and in forums, with no source reference. I learned that Itaú has undergone changes in its rules and I...
asked by 20.10.2016 / 15:18
1
answer

Pass data captured from a Python code to Shell Script

I would like to know what to do to get this data from a DHT11 sensor (Python Code [Temperature and Humidity]) and pass it to a script in Shell if umid is not None and temp is not None: print("Temperatura = {0:0.1f}Umidade{1:0.1f}\n").form...
asked by 20.10.2016 / 04:20
1
answer

How to change the position of the bitmap button?

I inserted a button with an image in my menu. But I can not change its position. How do I change my position? because I need to insert 2 more buttons and organize them. I am using the python wx library. menu image: code:#!/usr/bin/envpython#...
asked by 22.10.2016 / 06:14
1
answer

Make 1 figure with 3 graphics

I have 3 functions like the following that allows to obtain each one a graph and I intend a function in which it uses the 3 graphs of the other functions to join in a single figure. def funcao1(grafico): ... pylab.plot(range(len(x)), y...
asked by 23.05.2016 / 19:35
1
answer

Grouping and aggregating data

I have the following file in CSV ( 12 Millions of records): UF Municipio Cod NIS Valor Data MA IMPERATRIZ 803 16361947271 45.00 01/01/2011 MA IMPERATRIZ 803 74629273937 15.00 01/01/2011 BA RUY BARBOSA 3845 16481166579 5...
asked by 18.05.2016 / 00:47
1
answer

Why can not I pass a parameter to the class?

I'm trying to pass the "ink" parameter to the "Pen" class but I can not. I've tried using Boolean expressions instead of index, but still no results. Could someone give me a help ? class Caneta(): açao = 'escrever' def __init__(self...
asked by 02.10.2016 / 20:50
1
answer

How to calculate proof notes?

I am writing a code that prints a student's grade according to the number of questions he hits. But I need the program to do the calculation in a specific amount of times. The program should receive the number of questions in the test, the feedb...
asked by 04.04.2016 / 21:36
1
answer

Include in the head tag Djanto Templates

I have the following files: base.html : <!-- base.html -- --> <html> <head> <title>Title</title> {% include "head.html" %} </head> <body> Body </bo...
asked by 04.01.2016 / 14:13
2
answers

virtualenv with kivy

Using Ubuntu 16.04, I installed virtualenv and created a virtual environment. In this virtual environment I installed Cython using: pip install cython==0.23 Kivy install command: pip install kivy But it returns a lot of errors, amon...
asked by 04.09.2016 / 21:17
1
answer

Questions in Python (Try and except)

I am doing a program that calculates the grade of a simulated ENEM style of my school, I ask how many questions of each area the person has hit, however, I want to cause that if the person enters an invalid number in the second or third question...
asked by 04.09.2016 / 02:56