We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e181e84 commit 726827aCopy full SHA for 726827a
Automations/linux_and_python/pipes/capitalize.py
@@ -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())
Automations/linux_and_python/pipes/haiku.txt
@@ -0,0 +1,3 @@
+advance your career,
+automating witth Python,
+it's so fun to learn
0 commit comments