Skip to content

Commit 00bfd12

Browse files
get titles{
1 parent baeecd0 commit 00bfd12

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

0x16-api_advanced/1-main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
"""
3+
1-main
4+
"""
5+
import sys
6+
7+
if __name__ == '__main__':
8+
top_ten = __import__('1-top_ten').top_ten
9+
if len(sys.argv) < 2:
10+
print("Please pass an argument for the subreddit to search.")
11+
else:
12+
top_ten(sys.argv[1])

0 commit comments

Comments
 (0)