Questions tagged as 'python-3.x'

1
answer

Is it possible to add non-native libraries to python?

I'm wondering if there's a possibility of adding a non-native library of python . Example, I'm using NetworkX to create graph, so I need to install the library and everything. I want to add this library directly to the program...
asked by 17.07.2015 / 14:50
1
answer

Generate file with Python dynamic name

I'm creating communication socket for some devices with server. I need these devices to always record information in the same file. The file name must be the first few characters within your message. import socket import _thread HOST = '192.1...
asked by 26.11.2018 / 20:54
1
answer

How to upload a Flask server in 0.0.0.0:80 on a Linux Ubuntu 16.04 with python3 on an AWS EC2?

I need to run a Flask server on an EC2 instance. For this we need to solve these two steps: Open this port on EC2 Make Flask run in 0.0.0.0:80 The first step is ok. The door is open to interet: ForthesecondstepI'mfollowingthis video...
asked by 28.11.2018 / 04:57
1
answer

Python problems with too large List

I'm doing a Python script and I'm getting a msg error that I can not resolve Error msg: MemoryError Command exited with non-zero status (1) I tried to use the map: x = list (map (int, input (). split ())) Error msg: MemoryError Co...
asked by 07.09.2018 / 23:27
2
answers

read a txt file and list the successful candidates

Read a 'data.txt' file (attached) and list approved candidates. The data.txt file is organized into six columns, separated by ";" , and with the following content: column1> code. Mat, column 2 > full name, columns 3 to 6 > notes in tests p...
asked by 10.06.2018 / 02:19
1
answer

Tkinter, how to use the same script in win and llinux without the window icon disturbing [duplicate]

I've been writing scripts in Win VS and when I switched to Linux, I came across the following problem: When I use an image as a window icon in Linux (which does not have the same) the script does not execute. How can I "detect" the OS so it...
asked by 20.06.2018 / 19:22
1
answer

Variable not defined Python

I'm trying to run a code and from one moment to the other is giving this error, for example if you type "m" Traceback (most recent call last): File "Energias", line 5, in <module> var = input("\nQue desejas calcular?: ") File "&l...
asked by 29.07.2016 / 23:19
1
answer

How do I print the location (row and column) of the largest value inside an array?

Good morning, I'm not able to complete my code, I've already used the For i in range and the for j in range, but I can not complete the code because I need to store the result in another variable and then see if the results are greater than the...
asked by 16.06.2016 / 14:25
3
answers

Start numeric variable with null value in Python

Navigating through the Python web site, I decided to do exercise 1 from the Repetition Structure list: "Make a program that asks for a note, between zero and 10. Show a message if the value is invalid and continues to prompt until the user en...
asked by 17.11.2017 / 19:15
1
answer

Can you do self-executable script in Python? (Autorun)

Hello, I'm starting to learn Python, I know only the basics of the basics, I wanted to do a self-executable script (autorun), but I searched all over the internet and found nowhere to do an autorun in Python, so , is there any way to do this? If...
asked by 01.12.2017 / 00:48