-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmain.py
More file actions
34 lines (12 loc) · 951 Bytes
/
main.py
File metadata and controls
34 lines (12 loc) · 951 Bytes
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
## 1. Print out every number 1-100
## 2. Print out every number from 50-100
## 3. Find the sum of the first 100 digits
## 4. Find the sum of the numbers from 1000 to 2000
## 5. Print out every perfect square number less than or equal to 100
## 6. If you got one grain of rice on day 1, two grains of rice on day 2, and four grains of rice on day 3, and it kept doubling like that, print out a daily report of how much rice you'd receive on each day for 30 days.
## 7. Print out every number that ends in a 7 from 7-1007.
## 8. Print out every even number from 1-100.
## 9. Print out every multiple of three from 1-100
## 10. Print out multiples of two, another list of multiples of three, and then a third list of items which appear in both lists.
## CHALLENGE: Print out numbers which are multiples of 3 OR multiples of 2, but not multiples of both.
## SUPER CHALLENGE: Print out the first 40 numbers in the Fibonacci sequence.