Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanBaird authored Jun 28, 2022
1 parent 9264ef9 commit 1451a28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Working_Away_Summation_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# # # Going away for the summer to work so wont be uploading frequently
# # A function that adds up a number as it is increased by one
# Seperate variables for the individual growing number and total that is will be added into
# A while loop that adds ones to the number and adds it into the total

def summation(num):
number = 0
total = 0
while number < num:
number += 1
total += number
return total

0 comments on commit 1451a28

Please sign in to comment.