Skip to content

Commit 2c91ea1

Browse files
committed
sonarqube sample added
1 parent 5b0b965 commit 2c91ea1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pylint/demo.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env python
2+
import string
3+
4+
shift = 3
5+
choice = "encode"
6+
word = "Hello"
7+
letters = string.ascii_letters + string.punctuation + string.digits
8+
encoded = ''
9+
if choice == "encode":
10+
for letter in word:
11+
if letter == ' ':
12+
encoded = encoded + ' '
13+
else:
14+
x = letters.index(letter) + shift
15+
encoded=encoded + letters[x]
16+
print encoded

0 commit comments

Comments
 (0)