-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTricky-Counter
36 lines (33 loc) · 2 KB
/
Tricky-Counter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#Tricky Counter Exercise ZTM
#counter-loop over itaribale list and print sum of the total of the list
my_list = {1,2,3,4,5,6,7,8,9,10}
sum = 0
for num in my_list:
sum = sum+num
print("Adding all the numbers together\nin my list, you will get", sum)
/\ /\
| \ / |
| \ / \ / |
| \ /\ / \ / \ / |
| \ ^ / \/ \/ \ ^ / |
| |
/ \
/ \ / \
/ | \ / | \
/ | \ / | \
/ | @\ /@ | \
/ | \ / | \
/ \___/ \___/ \
/ \
/ |\______________________/| \
/ \ | | | | | | | /\ \
/ / \ | | | | | | | / \ \
/ / \ | | | | | | | / \ \
/ / \ \ | | | | | / / \ \
/ \ \ \_|___|___|___|___|__/ / / \
\/\/\/ /\ /\ \/\/\/
/ \ / \
| |
| \____________________/ |
\ | | /
<_________/ \_________>