Created
March 9, 2016 16:15
-
-
Save eirenik0/dc50ff57ec2391ce43b8 to your computer and use it in GitHub Desktop.
Решение этих задач https://gist.github.com/zaikays/6e09b966479c7975f28c#file-gistfile1-txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Решение задание №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