FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

program which prints an encoded (ascii to char ..) message to encoura… · marcelpetrick/pythonCollection@28a4314 · GitHub

Commit 28a4314

Browse files
committed
program which prints an encoded (ascii to char ..) message to encourage the use usage of Python <3
Change-Id: Ieb28a6292ddbcfa3af85a1ff2c733f70f4ea4aee
1 parent 2817e49 commit 28a4314

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎dailyCodingTask/day362_strobogrammaticNumber.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_expectFail(self):
4040
self.assertFalse(1 < 0, "hell has frozen over")
4141

4242
# ---- here comes the execution of the unit-tests ----
43-
if __name__ == '__main__':
44-
unittest.main()
43+
# if __name__ == '__main__':
44+
# unittest.main()
4545

4646
# ------------------------------------------------------------------------------

‎simpleEncodedGreeting.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# From me to you :*
2+
list = [71,111,111,100,32,109,111,114,110,105,110,103,44,32,109,121,32,100,101,97,114,32,112,117,115,107,105,110,97,33,32,72,111,112,101,32,121,111,117,32,104,97,118,101,32,97,32,110,105,99,101,32,100,97,121,32,111,102,32,80,121,116,104,111,110,45,108,101,97,114,110,105,110,103,32,58,41]
3+
result = ""
4+
for elem in list:
5+
converted = chr(elem)
6+
result = result + converted
7+
8+
print(result)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL