Questions tagged as 'python-3.x'

1
answer

Error when searching for a string

   Hello, how are you?   I'm having a problem running this code.   From the second "While True" the program can not find the written product. The same has been registered just above. I've checked this code from the bottom to the bottom and found...
asked by 04.02.2018 / 21:34
1
answer

Binary Tree Size

I need to develop a method to calculate the size of a Binary Tree but I'm getting compiler error. Code: class No: def __init__(self, dado): self.esq = None self.dir = None self.dado = dado class Arvore: def __init__(self):...
asked by 06.01.2018 / 02:38
1
answer

Integrate Python language into websites. As? [closed]

Hello, :-) I am an apprentice in Python, and I have the following question: How can I start integrating the Python language into websites? if possible, what procedures should I follow?     
asked by 26.01.2018 / 19:38
1
answer

print ("...") is running multiple times

I made a program to verify that the CPF entered is valid, but a bug is occurring: When I type a valid CPF immediately, the message "The Cpf ...." is printed once. When I type a wrong CPF and then type the valid one, the message "The Cpf .....
asked by 28.01.2018 / 16:31
1
answer

Where is the source code for Python3 commands located?

Where is the source code for Python3 commands? I want to see the source code for commands like len() , count() , find() , etc etc. I use Linux Mint, I already looked and looked, but I do not think ... Who can help thank you!...
asked by 27.01.2018 / 22:45
2
answers

Questions about python

I'm new to python, and I'm trying to make a system, where you fill out a questionnaire, and consequently it already prints in html to just paste in the forum. What I put together was this: from datetime import datetime now=datetime.now() ano...
asked by 01.01.2018 / 17:13
1
answer

Extract '_id' from object load_response

After posting, I get a load_response object, in Dict format, with the following structure: {'_content': b'{"params":{},"_id":"5a566f175ff52e02704de1aa","variables":"/dataset/5a566f175ff52e02704de1aa/variables","scenarios":"/dataset/5a566f175f...
asked by 11.01.2018 / 11:19
1
answer

I did not understand how the value (self) in "city.status = self" inside the function add_city ()

class Estado: def __init__(self, nome, sigla): self.nome = nome self.sigla = sigla self.cidades = [] def adiciona_cidade(self, cidade): #essa linha abaixo que eu não entendi o que significa cidade...
asked by 11.01.2018 / 19:49
1
answer

Problems loading static files in Django in deploy in heroku

I'm trying to deploy an app that I started in django in heroku, but I'm having trouble loading the css / js / imgs files, here's how my folders and settings look! settings.py BASE_DIR = os.path.dirname(os.path.dirname(__file__)) PROJECT_ROO...
asked by 11.12.2017 / 15:27
1
answer

Error and music written in Python [duplicate]

IwanttoplayasonginpythonbutwhenIdragittomyprojectitgets"written", how can I do it? (I'm new to python)     
asked by 12.12.2017 / 01:23