Posts by Vittor Valler Custodio • 54 points
5 posts
-
-2
votes2
answers172
viewsA: Python Generate txt layout from a txt file
I believe if you just concatenate one "\n" at the end of its variable new the problem will already be solved! Two more things: That variable f that is opening the update_teste.txt may be hindering…
-
1
votes1
answer208
viewsA: How to place arrows on the graph of a parametric curve - Python - Plotly
Answering and not answering your question: you have to work with the tools that plotly gives you. Unfortunately this library does not support your requirement. I suggest you take a good look at the…
-
0
votes2
answers60
viewsA: ola I am having difficulty in knowing how to link a question with a response of 2 separate lists (a list of questions and one of answers):
I thought of a simple way to meet your requirements. Take a look at Python dictionaries, they are widely used and are quite versatile. I refactored your code and came to a conclusion that worked…
pythonanswered Vittor Valler Custodio 54 -
0
votes1
answer25
viewsA: Error: Undefined Reference to Function
You have declared the function as verifica_primo, but you are referencing it and calling it as verifiva_primo. It is just a typo.
-
0
votes1
answer2202
viewsA: Make a Program that checks if a typed letter is vowel or consonant
You can use the string method .isalpha(). Ex.: alfa = input("Informe uma letra ou consoante:") if alfa.isalpha(): if alfa =="a": print("Vogal") elif alfa == "e": print("Vogal") elif alfa == "i":…
python-3.xanswered Vittor Valler Custodio 54