Skip to content

Commit 726827a

Browse files
committed
linux and python scripts
1 parent e181e84 commit 726827a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python3
2+
import sys
3+
4+
# loops over each line of file
5+
# that is pass in as stdin
6+
for line in sys.stdin:
7+
# strips the new line character
8+
# then capitalize eatch sentence
9+
print(line.strip().capitalize())
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
advance your career,
2+
automating witth Python,
3+
it's so fun to learn

0 commit comments

Comments
 (0)