Posts by Diogo • 49 points
4 posts
-
-1
votes3
answers174
viewsQ: Python - Sine cycle in degrees
Good in order to calculate the sine cycle (sin) in degrees between 0 and 390 with an interval of 10. print('Ciclo seno em graus entre 0 e 390 com intervalo de 10') a=0 while True: if…
-
1
votes1
answer78
viewsQ: format a python list
I can’t format the line print('{0:>20}'.format('Alunos:'),melhores) where I have to show the best students how it looks in the picture, can help me? # coding: iso-8859-1 -*- import math nAlunos=0…
-
-1
votes1
answer78
viewsQ: Python best student lists
supposing I have x students who have had x notes. how do I put the name of the student who had the best grade? # coding: iso-8859-1 -*- import math nAlunos=0 while True: nAlunos=eval(input('Indique…
-
0
votes1
answer111
viewsQ: Python - Square root estimate
Good, I was here solving an exercise where the program asks the user for a positive number and calculates its square root using: +=(+ã/) / is an estimate for the square root of the number; + is the…