pyg = 'ay'
pyg_vowel = 'way'
original = raw_variable ("Enter a word that you want to translate: ")
if len(original) > 0 and original.isalpha():
source_word = original.lower
first_letter = original(0)
if first_letter in (b,c,d,f,g,h,j,k,l,m,n,p,q,r,s,t,v,w,x,z):
translated_word = source_word + first_letter + pyg_vowel
translated_word = translated word(1:)
elif first_letter in (a,e,i,o,u,y):
translated_word = source_word + pyg_vowel
print translated_word
else
print :"Wrong Input"
The compiler shows - File “C:\Users\risha\AppData\Local\Temp\atom_script_tempfiles\a2967c80-3a99-11ea-b6ea-471cdfd61cc2”, line 29
translated_word = translated word(1:)
^
SyntaxError: invalid syntax
[Finished in 0.235s]