Posts by CrashXY • 109 points
6 posts
-
0
votes0
answers29
viewsQ: How to paste with correct indentation?
It’s always a lot of work to fix indentation after copy and paste, but is there a way to paste with correct indentation? For example: x = int(input("0 ou 1? ")) if x == 1: print("ON") if x == 0:…
-
-2
votes2
answers36
viewsQ: How to use a function inside variable on out of function?
Past until today, I always made a mistake, I still don’t understand anything because it didn’t work. Someone can explain? I’ll use a code example: def test(x, y): if x == y: v1 = False else: v1 =…
-
4
votes2
answers100
viewsQ: Sort two lists simultaneously, by notes in ascending order, then by name
I have created two lists, one of notes and one of names. The program must sort notes in ascending order, but it must sort names as well. I tested it as follows: notas = [5, 7, 9, 3] nomes =…
-
0
votes0
answers32
viewsQ: How to search for full name in List with name "incomplete"?
I wanted to do a Python program to find specific name in List: Example using random names: nomes = ['Melissa Renata Peixoto', 'Bruna Carla Henry Gomes', 'Carla Rosângela Brito', 'Carla Letícia…
-
0
votes0
answers14
viewsQ: How to show multiple lines on an output line (output)?
I study in the course of Computer Science. I made a simple encryption using Caesar’s Cipher. I managed to encode, but I have a problem that is that my program shows several lines in output, which I…
-
5
votes1
answer236
viewsQ: What do you mean, "Empty Dataframe"?
I’m learning and doing a lesson from my college. My teacher asked to use format table filters .csv using the command .query() So original is like this: Funcionario Escolaridade Genero Idade Meses…