Posts by igor roberto • 29 points
3 posts
-
1
votes1
answer135
viewsQ: student register
I have made the following code for student registration: laluno=[] lemail=[] lcurso=[] todos =[laluno,lcurso,lemail] def menu(): print("Menu\n[1]Cadastrar novo aluno\n[2]Lista de alunos…
pythonasked igor roberto 29 -
-1
votes4
answers568
viewsA: Write in a file numbers separated by a certain character
I found an easier way to do that: arquivoC=open("Crescent.txt","w") for num in range(1,101): arquivoC.write(str(num)+";"+" n") print(str(num)+";") arquivoC.close()…
pythonanswered igor roberto 29 -
1
votes4
answers568
viewsQ: Write in a file numbers separated by a certain character
I have to make a program that writes on disk a file with ordered numbers increasing from 1 to 100. Each number shall be separated by ;. The file should be called "growing.txt". I did so: arquivo=…
pythonasked igor roberto 29