Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / level3-lesson24-diy3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • level3-lesson24-diy3
  • 1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · f575c4e3
    BellCodeEditor committed 10 months ago
    f575c4e3
1.py 124 Bytes
1 2 3 4 5 6 7 8
abc=input()
if  "er" in abc or "ly" in abc:
    a=abc[:-2]
elif "ing" in abc:
    a=abc[:-3]
else:
    a=abc
print(a)