Questions tagged as 'python'

1
answer

How could I reduce this code?

def hello_quantum(string): """ hello_quantum: cad. caracteres --> lógico funcao permite jogar o jogo praticamente, permite o uso das portas para manipular o tabuleiro com o objetivo de igualar o tabuleiro inicial ao tabuleiro i...
asked by 06.12.2018 / 18:07
1
answer

How do I clear the memory to avoid overcharging?

As you read the HTML of the site, delete what is before. If there is any clear screen in Python. import mechanize response = mechanize.urlopen("https://www.exemplo.com") m = 0 linha = '' if (m < 100): for n in response.read(): m +=...
asked by 03.11.2018 / 23:38
1
answer

Error "expected an indented block" in my Phyton Calculator [closed]

I have searched for hours to try to find an error in my codes and I did not get anything! Please help me! [][] 2 [] 3     
asked by 01.08.2017 / 16:45
1
answer

Corporate Cloud Services [closed]

Does the "advancement" of the cloud technology in question lead to WebServices in the cloud rather than a private company X network or even local area network?     
asked by 06.07.2017 / 15:59
1
answer

How to change the display of user name in Ubuntu terminal [closed]

How can I change the display of my user name in the terminal? With this very large text, it gets in the way.     
asked by 28.06.2018 / 01:44
1
answer

Use of return in python [closed]

def repita(): x = 2 while n % x != 0: x += 1 repeat() while n > 1: n = n / x #aqui se encontra o primeiro problema, já que "n" não é reconhecido fora da função x += 1 if n % x != 0:#mesmo problema de antes repit...
asked by 24.12.2017 / 11:46
1
answer

Show on the screen the following operation with the tu tu: (ab) + (bc) + (cd) + (de) / e

Show on the screen the following operation with the Tu tuple: (ab)+(bc)+(cd)+(de)/e tu=(10,20,30,40,50) a,b,c,d,e=tu print(ab)+(bc)+(cd)+(de)/e NameError Traceback (most recent call last) <ipy...
asked by 27.09.2018 / 05:11
1
answer

Starting in Python Django [closed]

I am a web programmer working with ZendPhp OS linux Ubuntu and I decided to migrate to python. I have some doubts. Python is an interpreted language! what server will I have to install to make everything work perfectly, does it seem like python...
asked by 25.02.2016 / 14:46
1
answer

How to generate an executable program in python [duplicate]

I started to see programming languages at a certain time, I am currently learning Python, JavaScript and others. And would you like to know how I can generate a program that is independent of the interpreter? I mean, generate an executable....
asked by 13.07.2018 / 22:22
1
answer

How to invoke the function itself [closed]

def R(n): if n == 1: return 1 else: return 1/1/x-1/R(1/x+2/x)*n/1*n x=int(input("entre com x:")) print(R(2)) She makes the following handle 1 divides 1 / x -1 each iteration it divides 1/1 / x -1 / 3 / x it adds...
asked by 29.09.2018 / 22:43