Skip to content

Commit c7783da

Browse files
authored
Merge branch 'geekcomputers:master' into master
2 parents 479a2d1 + 6d78576 commit c7783da

12 files changed

+139
-15
lines changed

56

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
import turtle
12
t = turtle.Turtle()
23
t.circle(50)
File renamed without changes.

Armstrong number

Lines changed: 0 additions & 12 deletions
This file was deleted.

Armstrong_number.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ def is_armstrong_number(number):
1010
temp += rem ** length
1111
return temp == number
1212

13+
number = int(input("Enter the number"))
1314
is_armstrong_number(number)
File renamed without changes.

README2.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

cartesian_product.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""Cartesian Product of Two Lists."""
2+
3+
# Import
4+
from itertools import product
5+
6+
7+
# Cartesian Product of Two Lists
8+
def cartesian_product(list1, list2):
9+
"""Cartesian Product of Two Lists."""
10+
for _i in list1:
11+
for _j in list2:
12+
print((_i, _j), end=' ')
13+
14+
15+
# Main
16+
if __name__ == '__main__':
17+
list1 = input().split()
18+
list2 = input().split()
19+
20+
# Convert to ints
21+
list1 = [int(i) for i in list1]
22+
list2 = [int(i) for i in list2]
23+
24+
cartesian_product(list1, list2)
25+
File renamed without changes.

happy_num renamed to happy_num.py

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)