Questions tagged as 'python'

1
answer

Problems with the library with Python

Can anyone tell me that the "comtypes.client" library is just Windows? if so, please tell me some similar library (That works for the same thing) for Linux (ubuntu) thanks.     
asked by 25.10.2018 / 15:56
1
answer

: Python3 Tkinter Requests: Temporary locking in get ('url') with the requests!

This is the following I created a script to 'decrypt' md5 hash, but when I enter Entry 21232f297a57a5a743894a0e4a801fc3 that is admin and is contained in wordlist, it hangs every time it reaches the b=get(f'url').content.decode(...
asked by 25.10.2018 / 15:18
1
answer

Problem with CIELO certificate using Django

I'm trying to implement a transparent checkout for my online store using CIELO to do so. data: Django 1.9.5 Python 2.7.6 Ubuntu 14.04 nginx uwgsi digital ocean link api python sky: link I installed the certificates using the cielo.sh...
asked by 27.01.2017 / 02:32
2
answers

Find the first row in the matrix with all the positive elements, and the sum of these elements. Reduce all elements to this sum

Find the first line in the array with all the positive elements, and the sum of these elements. Reduce all elements to this sum. Here is my attempt, but in this way add up the positive elements: matrix = [[-5, -6, 2], [7, 2, 3], [8, 4, -9]]...
asked by 10.01.2016 / 16:46
1
answer

Count vowels and store in dictionary [duplicate]

Li this question and its answers I still have a question. I wanted a function that counted the number of vowels in a text and stored in a dictionary where the key is the vowel considered.     
asked by 24.09.2017 / 04:18
1
answer

How to create a set of objects (classes) in Python?

I need to create a set, such as a list, in the Dealer variable, where it needs to contain letter objects, any idea how to do this? class cartas(object): def __init__(self,carta): self.carta = carta def ponto...
asked by 03.08.2018 / 19:22
1
answer

ImportError: No module named 'chatterbot'

Does anyone help me? My code gives the following error: Traceback (most recent call last): File "main.py", line 1, in <module> from chatterbot import ChatBot ImportError: No module named 'chatterbot' So here's main.py: from ch...
asked by 05.08.2018 / 20:14
1
answer

Error: 'int' object is not subscriptable

In a distance jumping competition, each athlete is entitled to five jumps. The athlete's score will be determined by the average of the remaining five values. You must make a program that receives the name and the five distances reached by the a...
asked by 11.09.2017 / 02:43
1
answer

How to make the individual media of each element in an array

Hello, I have the following array: matriz = np.array([ [5, 5, 5], [5, 5, 5], [10, 10, 10] ]) I need the result with an array of their respective means, like this: [6.66, 6.66, 6.66] Thankful     
asked by 28.08.2018 / 21:25
3
answers

How to create a function to find the largest value in a list?

I'm not able to insert this algorithm into a function max_trip = 0 for val in trip_duration_list: if int(val) > max_trip: max_trip = int(val)     
asked by 06.12.2018 / 01:26