Questions tagged as 'python-3.x'

2
answers

How to start a Python application with Windows? (cx_freeze)

Hello, I'm trying to develop an application that starts with windows, but I've already tried to make the program copy itself to the folder    "C: \ Users \ User \ AppData \ Roaming \ Microsoft \ Windows \ Start   Menu \ Programs \ Startup "...
asked by 12.02.2017 / 05:48
4
answers

Find and delete different characters between strings

lst1 = ["carro"] lst2 = ["carroa", "carrooao"] How do I check if the word in lst1 exists in some substring of lst2. If there is a delete of the surplus characters of the word that has the substring, making the string in lst2 equal to that of l...
asked by 05.07.2017 / 22:12
1
answer

Character to binary conversion

I'm developing a small 'python' application that requires character conversion to binary. However, I want to know if there is a specific function for this type of task.     
asked by 15.10.2016 / 02:40
1
answer

Time between two dates [duplicate]

How do I know the amount of time in days, hours, and months between two dates using Python? For example, to know how many days, months and years there are between 11/22/213 and 3/25/2014.     
asked by 07.08.2018 / 02:47
1
answer

Compile error with Pycharm: do not find libraries of python 3.6

Operating System: Ubuntu 16.04 64-bit Python 3.6 installed via apt-get When compiling a program in the terminal using: python3.6 programa.py No error is displayed. When running the same program with the python or Wing Python IDE, with...
asked by 28.08.2018 / 17:13
1
answer

how to make the function follow a sequence?

def fnum_aleatorio(): a=22695477 b=1 m=2**32 semente=3 num= semente num_aleatorio = (num*a + b)%m if num_aleatorio <= m//2: return 0 else: return 1 I have this function, I want it to retur...
asked by 26.03.2018 / 20:41
1
answer

Why does this syntax error occur?

Code: print ('oi,tudo bem?') name = input () if name == 'Alice': print ('oi, alice.') else name != 'Alice' print ('Tchau.') Error: e/emulated/0/qpython/vampi.py" && exit File "/storage/emulated/0/qpython/vampi.p y",...
asked by 22.06.2018 / 21:45
1
answer

Importation of Kivy by the terminal does not work, but in IDLE it usually imports

I had a hard time installing kivy and getting it working on Ubuntu. But now I can not make kivy work in interactive mode directly through the terminal, but I can do that through IDLE. Can anyone help me solve this? I do not know why this happ...
asked by 16.02.2017 / 01:39
2
answers

Doubts average calculation with Python 3.5

I am creating a program, using Python 3.5, to calculate average, but in my school there are some subjects with two teachers, and each one of a different proof. The problem is that the code I created does the average of (Prova 1 + Prova 2)/2...
asked by 22.04.2016 / 03:31
2
answers

Learning to program - IDE PYTHON

I'm learning to program I chose the Python language and I'm using VScode I downloaded vscod. When I press "f5" to rotate the code, it error. WhatdoIneedtodo,toopena"cmd" that I can type and test the codes?     
asked by 17.11.2018 / 18:47