Created
April 9, 2020 16:56
-
-
Save roman-on/44b225caf4b93d78af967d9e13e75a68 to your computer and use it in GitHub Desktop.
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
str = input("Please enter a string:") | |
# ddar astronaut. pldase, stop drasing md! | |
a = str[1:-1] | |
all_but_first = a.replace("d","e") | |
print(all_but_first) | |
b = str[0] | |
print(b) | |
print (b+all_but_first) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment