Posts by Rodrigo Girardon • 21 points
2 posts
-
0
votes1
answer103
viewsQ: Help with simple program of function and sum
Gentlemen, I’m trying to solve the following exercise: Exercise 2: Write a Python function, called soma_n, that takes an integer number, n, and computes the sum 1 + 2 + ... + n, if n > 0, or -1 +…
-
2
votes1
answer720
viewsQ: Help with simple while summation program
Gentlemen, I started to introduce the programming and the master is requesting an exercise as follows: Write a Python script that asks the user to enter an integer, n, and computes the sum 1 + 2 +…