Skip to content

Instantly share code, notes, and snippets.

@eirenik0
Created March 9, 2016 16:15
Show Gist options
  • Save eirenik0/dc50ff57ec2391ce43b8 to your computer and use it in GitHub Desktop.
Save eirenik0/dc50ff57ec2391ce43b8 to your computer and use it in GitHub Desktop.
#Решение задание №1:
original = "I like this World "
reverse = original[::-1]
print(reverse)
Решение задание №2:
original = "123123abc 2311 a c"
reverse = original[2::3]
print(reverse)
Решение задание №3:
count_this = 'aeiou'
original = "Python hAs an amazing fEature".lower() # Python 2 — .lowercase()
conted = sum(original.count(char) for char in count_this)
print(conted)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment