Posts by Thanos • 11 points
3 posts
-
-4
votes1
answer42
viewsQ: Return area of a triangle using function,
def main(): base = input("digite o valor da base do triangulo: ") altura = input("digite o valor da altura do triangulo: ") area = ((base*altura)/2) return area main()…
python-3.xasked Thanos 11 -
1
votes3
answers732
viewsQ: Write a function that returns the larger of two numbers passed as arguments
I wanted to do this function by grabbing the keyboard input but I’m not getting. def bigger(a, b): a = input('informe um valor: ') b = input('Informe outro valor: ') if a > b: print('O valor a é…
python-3.xasked Thanos 11 -
-2
votes3
answers188
viewsQ: Read two notes and display a string according to the average between them
Make a program that receives two notes, calculate and show the average and the message that is in the following table: 0,0 - 4,0 Reprovado 4,0 - 7,0 Exame 7,0 - 10,0 Aprovado print('ATIVIDADE 2…