> Questions about python problem?

Questions about python problem?

Posted at: 2014-12-18 
he question asks Write a code that prints the summation of 1 to value . You can assume that value will be positive. For example, summation for user input 5 would print 15 (1 + 2 + 3 + 4 + 5). we are supposed to do this using why loops

the second question is the same but multiplying the numbers to a value

this is what i have but it doesnt run

def summation(n):

count = 0

num = 0

while count < n:

count+=1

num+=count

return num

print (summation)