Skip to content

Instantly share code, notes, and snippets.

@bryanyang0528
Created July 3, 2014 15:27
Show Gist options
  • Save bryanyang0528/7838f7ee1d9748d18268 to your computer and use it in GitHub Desktop.
Save bryanyang0528/7838f7ee1d9748d18268 to your computer and use it in GitHub Desktop.
text = "AbCdEf"
text1 = ""
for i in range(len(text)):
if i == 0:
text1 += text[i].lower()
else:
text1 += text[i]
print text1
# abCdEf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment