Advertisement
Guest User

3rd person singular English

a guest
May 27th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. def conjugate_pres_simple():
  2.     for line in infile:
  3.         print line[-3], line[-2]
  4.         if line[-2] == "y" and not line[-3] in "aoue":
  5.             outfile.write(line.rstrip("y\n") + "ies" + "\n")
  6.         elif line[-2] in "shzx" and not line [-3] == "g":
  7.             outfile.write(line.rstrip("\n") + "es" + "\n")
  8.         else:
  9.             outfile.write(line.rstrip("\n") + "s" + "\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement