Questions tagged as 'python-3.x'

0
answers

Replace a list with another list in a file

I am having difficulty doing step 4, I want to create a code that takes links in a file and substitutes for others in an HTML already preformatted with variables @link1@, @link2@..., but it returns the error: AttributeError: 'list' obj...
asked by 17.04.2018 / 20:26
0
answers

Python 3 AttributeError: 'LoginScreen' object has no attribute 'username'

Python 3.6.4 / Pycharm IDE I was studying the kivy library and the error occurred while trying to replicate the code below: from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.t...
asked by 11.04.2018 / 16:11
1
answer

for in range on the flask template

I'm in doubt, the API I'm getting returns me two data types "ID" and "Title" are various id and title and wanted to throw this in my table in a "for" template. I wanted to know if what I did is right because it does not return anything. code...
asked by 10.04.2018 / 17:25
0
answers

Error in Python proxy configuration

I'm performing automated testing with Selenium and I need to test access to a particular site with different proxy's. I get the list of proxy's through a website and implement the configuration as follows: PROXY = address proxy = Proxy({ '...
asked by 10.04.2018 / 18:54
2
answers

Syntax error in basic calculator Python 3

I've been programming a basic calculator (adding, dividing, multiplying, dividing absolutely, finding the rest of the division and power). The code is this: operando_1=input() operando=input() operando_2=input() resultado=None if operan...
asked by 14.04.2018 / 15:33
0
answers

How do I install the discord.py library on the unbutu terminal?

How do I install the discord.py library on the unbutu terminal? The discord is already installed, I want to install the library now, through the terminal.     
asked by 03.04.2018 / 21:40
1
answer

Get an Entry from TKinter and save to a variable

I made this initial window where it takes the data, and when the client uses it, after giving the data and confirming it, it closes and kept the data saved in a variable that was not tied to a DEF nesting , that is, that could be used at any tim...
asked by 03.04.2018 / 02:48
1
answer

Function strip () in python malfunction

I have a list in a file, where each line has a user agent (with "at the beginning and at the end of each line), which is used in a later part of a program, to perform automated tests using selenium. When I opened the list, I implemented that, fo...
asked by 10.04.2018 / 07:20
0
answers

How to get TKinter information in a variable out of '' def ''

The program I'm doing, I've done it before, but without the graphical interface, now that I'm doing a graphical interface, there are three text boxes where it picks up the information and checks if it has something written or not, but I can onl...
asked by 01.04.2018 / 02:08
2
answers

How do I capture two integers with space between them in python3?

I want to capture two integers, for example:    2 4 I'm not sure how to do this, var = input() lista = [] lista = var.split(' ') n,q = lista n = int(n) q = int(q)     
asked by 02.04.2018 / 00:14