'pyglatin without changing punctuation marks
Hi i made a pyglatin code:
pyg = 'ay'
original = input("Enter a word:")
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word + first + pyg
new_word = new_word[1:len(new_word)]
print(new_word)
else:
print("empty")
and it works perfectly but i need s.th else. for example if user entered
"rm !"
then the output should be:
"mray !"
i dont punctuation marks like ! , . @ to change.
can anyone help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
