Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
183 B
2
Indexable
Never
def Tot (Number):        #Method to find Total
    Sum = 0
    for C in range (1, Number + 1):
        Sum += C
    return Sum
print (Tot(3))      #Function Calls
print (Tot(6))