Skip to content

Commit 41176aa

Browse files
committed
code updated to Python 3 Series. All the commented lines are Sample Inputs and Outputs
1 parent d1a05cb commit 41176aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Strings/SwapCases.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# HackerRank.com presents "Pythonist 2".
2222
# Sample Output
2323
#
24-
# hACKERrANK.COM PRESENTS "pYTHONIST 2".__author__ = 'Sanjay'
24+
# hACKERrANK.COM PRESENTS "pYTHONIST 3".__author__ = 'Sanjay'
2525

26-
userInput = raw_input().swapcase() #works only for Python 2. X
26+
userInput = input().swapcase()
2727

28-
print userInput
28+
print (userInput)

0 commit comments

Comments
 (0)