Questions tagged as 'python'

1
answer

Put except with error name in python

I need to create a try except with two exceptions, but I do not know how to put the specific error in the first except, the error that appears below, could someone help me? raise exception_class(message, screen, stacktrace) selenium.common.ex...
asked by 05.11.2018 / 20:40
1
answer

Error using chatterbot in python ('chatterbot' is not a package)

I made a basic Chatterbot code in Python that worked fine, but out of nowhere it stopped working and always has the same error:    from chatterbot.trainers import ListTrainer ModuleNotFoundError: No module named 'chatterbot.trainers'; 'chatte...
asked by 28.12.2018 / 19:17
1
answer

Python error api-ms-win-crt-runtime-l1-1-0.dll

I have been using Windows 7 64bits, I downloaded and installed python 3.5 but when I start the program, I get the following error message:    The program can not be started because it is missing   api-ms-win-crt-runtime-l1-1-0.dll on your com...
asked by 31.01.2017 / 21:05
2
answers

How to transform a list [['a'], ['b']] into a string: ab

quantidade = int(input()) lista = [] lista2 = [] lista3 = [] palavra =() i = 0 while quantidade != len(lista): a = input() lista.append(a) for x in lista: b = x.split() lista2.append(b) for x in lista2: x[0] = int(x[0]) del(li...
asked by 15.08.2018 / 01:36
1
answer

Sending mobile information to the web

Good morning, my dear ones! I want to collect some data and send some information from Mobile (Android) to a WEB site that I'm developing with (Python + Django). But I do not know the name of this process of sending the cell phone. What is th...
asked by 06.09.2018 / 15:27
1
answer

How to create a TCP port scanner using the SYN (TCP SYN) method?

##################################### # Portscan TCP # # # ##################################### # -*- coding: utf-8 -*- #!/usr/bin/python3 import socket ip = input("Digite o IP ou endereco: ") ports = [] count = 0 while count < 10:...
asked by 18.08.2016 / 19:58
1
answer

Program that creates two vectors with 10 random elements between 1 and 100

Make a program that creates two vectors with 10 random elements between 1 and 100. Generate a third vector of 20 elements, whose values should be composed of the interleaved elements of the two other vectors. Print the three vectors. I would...
asked by 08.08.2016 / 01:25
1
answer

Error in Fortran

I have this programming in Python: from time import sleep #importando biblioteca para usar a função sleep G = 6.67408 * (10 ** -11) M1 = 1.98*(10**30) Xo = 15 * (10 ** 10) Yo = 0 Voy = 2.97 * (10 ** 4) Vox = 0 ax, ay, t = 1, 1, 0 for t in ra...
asked by 25.07.2018 / 03:47
1
answer

Error in enumeration and print [closed]

In this list the combinations appear. But I can not enumerate them. and when I printed the last total sum of 520. I do not know what I'm doing wrong. from itertools import combinations lis = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37...
asked by 05.07.2018 / 03:20
1
answer

How to sweep data like google?

Good evening how can I make an application that basically works like google, I want to type a keyword and receive results on, or pull data from google itself, which language and path should I use?     
asked by 28.04.2018 / 00:37