Questions tagged as 'python-3.x'

1
answer

Problem declaring variables for averaging in Python 3

n1 = input("informe sua nota do 1º Bimestre ") n2 = input("informe sua nota do 2º Bimestre ") n3 = input("informe sua nota do 3º Bimestre ") n4 = input("informe sua nota do 4º Bimestre ") media = float((n1 + n2 + n3 + n4)) / int(4) print("A média...
asked by 19.09.2015 / 05:08
1
answer

How to receive multiple socket requests on a single server?

Hello! I'm doing a server / client schema program in Python where I wanted to have only one server and multiple clients. Let's say we have 3 clients each making a request to the server per socket connection, how is it that: 1: Could the...
asked by 19.02.2017 / 00:16
1
answer

Why fractions.Fraction (1/3) does not return "1/3"?

import fractions a = int(input()) b = 1 / a b = fractions.Fraction(b) print(b) This is part of a code I'm developing. This part had the function of taking the decimal resulting from the division "1 / a" and transforming it into fraction and ap...
asked by 03.01.2019 / 18:45
1
answer

How to execute a loop while waiting for input?

I want to know if you can execute a loopback while waiting for an input () input, and immediately after receiving the input the for loop or while starts processing she immediately. something like: imputs = [] parar = false def faca_algo...
asked by 31.12.2016 / 13:42
1
answer

Python integration with C #

Is there any way to integrate C # and Python 3? I need to create a graphical application quickly and practically. Currently, I have the Python scripts running 100%, now what I need is to take the inputs from the terminal and play in a visu...
asked by 12.05.2017 / 22:18
1
answer

How to make a POST request in Python?

I would like to know how to make a request POST at this URL , for later get here on this page . Where do I have to spend the year on the div of the unsigned fiscal body.     
asked by 01.04.2015 / 15:33
1
answer

Python 3.4 and Python 2.7: How to remove the preinstalled version of MacBook?

Currently I'm migrating from a Mac to a Windows and today I discovered, when I installed all the features I needed, that I already had a Python 2.X in it and I need to run Python 3.4.3. > How can I remove the old version that is harming me?  ...
asked by 15.07.2015 / 23:05
1
answer

Problem in sublime to run code in python

Decode error - output not utf-8] [cmd: [u'python', u'-u', u'C:\Users\Rosangela\Desktop\Leo\Estudo\Exercicios_Python\teste14.py']] [dir: C:\Users\Rosangela\Desktop\Leo\Estudo\Exercicios_Python] [path: C:\Program Files (x86)\CollabNet;C:...
asked by 12.06.2014 / 04:15
2
answers

load independent process

I'm having trouble loading processes from a python application. Before I was using subprocess.Popen but it creates subprocesses of the main application and in my case, I need to create processes that run independently, in the sense that, if...
asked by 24.06.2014 / 15:16
2
answers

How to install numpy and other modules?

I need help with how to install numpy. I tried to install pygame using pip but it did not work and I was confused on how to install modules or packages. Using python 3.5.0 in Windows 10 pro     
asked by 16.11.2015 / 00:09