Posts by Van Scheur Freud Belmont • 83 points
3 posts
-
4
votes3
answers510
viewsQ: How to make an error message for this situation?
arq=open('filmes.txt','r') filmes = arq.readlines() def buscaPorGenero(): genero=str(input("Digite o gênero do filme: ")) while(True): for linha in filmes: linha = linha.split(";") if genero in…
-
1
votes1
answer54
viewsQ: The code is right, but could someone tell me how True and False works in detail in this question (step-by-step)?
"Make a program that, when filling a list with 8 integers, already stores them increasingly. Show the resulting list each time a value is stored" lista = [] for x in range(8): n = int(input("Digite…
-
2
votes2
answers17879
viewsQ: (Python) Sort lists without Sort()
how to sort a list without using Sort()? The code below is correct, but the teacher does not want you to use Sort(). The code has the following instruction: "Make a program that, when filling a list…