Questions tagged as 'python-3.x'

3
answers

Python 3.5.0 :::: Install pygame

I have tried to install pygame in python IDLE using pip but it did not work, however I found a download that installed a folder with pygame ready to install on my local drive. When I installed pygame and opened python I did: import pygame, but w...
asked by 07.11.2015 / 12:56
2
answers

Count vowels and know how many there are

Good! I want to create a function that would allow me to say if a word or phrase has vowels, and if so, how many vowels it has, but I have 2 problems in my code that I do not understand: def conta_vogais(str): vogais = ['a','e','i','o','u'...
asked by 19.11.2016 / 17:02
2
answers

Function encode () and creation of hashes

I'm using Python 3.6 to do a program in which the person types an MD5 hash, so the program saves the hash in a variable, reads a txt file and plays the contents inside a list, where each name separated by , is an item in that list. Aft...
asked by 29.12.2018 / 01:15
2
answers

Identify string between two known strings in a string

I would like you to help me with the following: Given this CGC UUC GCU UUG GAA AAU UUG UGU GUU UUU UGU GGC UGC UCG CUG CUC AAA UUG UUC GCU GCU UUU UGU GUC CUG GCU GCU UUU AUU AUU UUA CGC UGC UUG GCG CUG CUY UUA CGC UGC UUG GGC UUG UUG UGG C...
asked by 31.10.2017 / 21:46
2
answers

How to get a list of processes running windows in python?

I would like to know how to get the processes running from windows and store them in a list in python. from os import system system('tasklist') I know that the code above shows the processes, but I would like to have them put in a list even...
asked by 05.01.2017 / 17:38
2
answers

I would like to know what the function of: {} in the Python language is and more specifically within the PRINT function as in this code?

I would like to know the function of: {} in the Python language and more specifically within the PRINT function as in this code? Salario = int(input('Salario? ')) imposto = 27. while imposto >0.: imposto = input('Imposto o...
asked by 28.12.2016 / 17:09
2
answers

How to repeat the code at the end in python?

So, I'm starting programming (just by appending it myself) and wanted to know how to do code to restart at the end. I know it may seem like something simple but I do not take any courses, I'm learning alone lanchonete = ("500$") açaiteria...
asked by 17.04.2018 / 03:33
3
answers

list index out of range when trying to resolve google developer day 2010 issue

First, I'll copy here the statement of the question to be located: In the quiet country village of Ponteironuloville, all phones have 6 digits. The telephone company establishes the following rules on numbers: There can not be two consecu...
asked by 14.03.2015 / 02:50
2
answers

Grouping table

I have this table and would like to set up a list or another table users_ID_User Material Rating 0 A "Hey Pogo!...from citation to fulltext" 5 1 B...
asked by 28.08.2018 / 02:44
1
answer

Testing mega sena games

My teacher asked me to generate a mega sena generator. I did, and modesty part was pretty cool: from time import sleep from random import sample palpite = list() a = [] print('='*40) print('=========PALPITES DA MEGA SENA==========') print('='*...
asked by 22.08.2018 / 04:45