Questions tagged as 'python-3.x'

2
answers

Table does not want to be vertical

I wanted to know what I was doing wrong, because I created a table in the template taking information from an api. He wanted to sort himself vertically rather than horizontally. <!Doctepyhtml><html><head><title>Tested...
asked by 29.04.2018 / 00:25
1
answer

Gif API in python

It is my question and the following I have this script where I type the name of the gif that I want and it returns me several type of url of the size (width, height) of the randomly drawn gif, I wanted it to return me only this:    image_url...
asked by 01.05.2018 / 19:18
3
answers

List with input in python

Good morning, people. I need help resolving some of the college exercise. The problem is relatively simple, but I'm having difficulties. My code is as follows: # Subprogramas def verifica_peso(pesos): if pesos > 10: print("A so...
asked by 06.04.2018 / 16:27
2
answers

Is it possible to manipulate the numbers of a randint?

For example, I wanted the numbers generated by a randint to be 350 , 400 , 450 and 500 . Would you be able to do that?     
asked by 19.07.2018 / 21:54
2
answers

How to detect if the string entered is longer than 6 characters? [closed]

   How do I detect that the string entered by the user has more than 6 characters for example ??? . . . . . .. .     
asked by 22.06.2018 / 21:50
3
answers

Problem using if elif else (error in else)

n = input ("informe seu nome ") b1 = float(input("informe sua nota em Biologia no 1º Bimestre ")) b2 = float(input("informe sua nota em Biologia no 2º Bimestre ")) b3 = float(input("informe sua nota em Biologia no 3º Bimestre ")) b4 = float(input...
asked by 25.10.2015 / 06:00
1
answer

Why are the characters in the string being printed as integers?

I have to parse an excerpt of code and explain its operation, but I can not figure out the output: Code: word_norm = 'mundo'.encode("utf8").lower() for idx, value in enumerate(word_norm): print(idx, value); Output 0 109 1 117 2 11...
asked by 31.01.2018 / 22:03
1
answer

python - Print list elements that end with the letter 'a'

Considering the following list: lista_nomes =['Manuel', 'Laura', 'Antonio', 'Jasmim', 'Maria', 'Silvia', 'Lu', 'Pancrácio', 'Diogo', 'Ricardo', 'Miguel', 'Andre',] * What I want to do is print the list elements that end with th...
asked by 01.05.2018 / 12:54
1
answer

How to put a program online?

There is a shared (google) worksheet in which multiple users edit and watch simultaneously. For those who have used the shared spreadsheet google knows that when someone starts to write everyone sees in real time. Anyway I build a program with s...
asked by 08.06.2018 / 11:58
2
answers

Python 3 not returning float

I started to study python 3 and was doing some exercises, until I came across something unexpected, I can not get a float in response. I followed everything that was in the exercise and I still get an integer.     
asked by 17.04.2018 / 22:08