Questions tagged as 'python-3.x'

1
answer

How to run a .py program from python IDLE in Windows?

I'm learning to program in python and I made a small program, but I can not execute it through the terminal (IDLE or sheel) of python program name: salario_real.py error     
asked by 01.07.2017 / 23:23
1
answer

put the output of a command in a python3 list

I researched and tried to do this in several ways. I execute the command: ethers = [] ethers1 = os.system("ifconfig|grep eth|cut -c 1-4") ethers2 = os.system("ifconfig|grep wla|cut -c 1-4") ethers3 = os.system("ifconfig|grep ath|cut -c 1-4")...
asked by 21.06.2017 / 20:29
1
answer

How to make program in Python run in 32 and 64 bits

I have a program made in Python (3.5) under 64-bit operating system, is it possible to have it run in 64 and 32-bit in windows? NOTE: I used Pyinstaller to compile the program to run on windows machines that do not have python installed.    ...
asked by 03.07.2017 / 01:13
1
answer

Django returning ValueError

I am creating a project to send emails, however I am doing some tests and I came across the following problem:    The view send_mail.core.views.index did not return an HttpResponse object. It returned None instead. Below are my lines of c...
asked by 17.08.2017 / 18:49
1
answer

Button does not call function correctly

from tkinter import * class Application: def __init__(self, master=None): self.inicio = Frame(master) self.inicio.pack() self.msg = Label(self.inicio, text="Deseja exprimentar a versao input?") self...
asked by 07.06.2017 / 21:43
1
answer

Update values of a chart using Django

I'm joking on a solo project to make a website to show the current coffee quote along with a line graph of the daily variation of that price as a function of time. I get the price of coffee making "webscraping" (yes, I know it's not cool but...
asked by 08.06.2017 / 17:07
1
answer

AssertionError: b 'Working with test classes in Django (TDD)

I'm starting my test studies with Django and am getting an error where it apparently should not, so much so that the description of traceback makes me pretty confused. I have a class that tests if the return of my view is compatible with its...
asked by 02.06.2017 / 05:02
1
answer

Python While Looping Help

I have tried several times, I can print the largest amount, I can print the date of the biggest sale, my problem is at the time of the tie, code follows the loop like this in command, only when he wants, help me, spent hours trying find the erro...
asked by 17.07.2017 / 07:15
1
answer

Python3 does not accept file.name

I have a script where I want to get the name of each file along the first line inside each file and pass those files to a list within a txt. #modifica titulos de arquivos import os import glob s=("-") arq=open("listapdf.txt","w") for file in...
asked by 28.05.2017 / 20:08
1
answer

How does this recursive function (factorial function) in Python behave?

I do not understand how the code behaves after it exits the recursive function on line 7, fat = n * fatorial(n-1) , that is, how the code assigns the value to the variable n of that line and how to calculate that line where the code...
asked by 31.05.2017 / 17:42