Python Forum
Thread Rating:
  • 3 Vote(s) - 3.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The LOL Translator
#1
Hello everyone I'm an average python coder so I just coded a LOL Translator. Just wanted to ask for suggestions on how to improve it!
""" This is the lol-translator by: SpeedyZapGaming """

# Variable
lollish = "ololly"

# Intro
print ("Hello and welcome to the lol-translator!")
print ("This translator was made for fun by SpeedyZapGaming.")
print ("If you are gonna re-upload this then please give credit.")
print ("This translator does NOT accept numbers.")
print("You are allowed to use any language.")

# Asks for word
Word = input("What is the word you want us to translate?: ")

# Result
if len (Word) > 0 and Word.isalpha():
    TheWord = Word.lower()
    FirstLetter = TheWord[0]
    if FirstLetter == "a" or FirstLetter == "e" or FirstLetter == "i" or FirstLetter == "o" or FirstLetter == "u":
        NewWord = Word.lower() + lollish
        print ("The result is,", NewWord)
        print ("Thank you for using the lol translator by SpeedyZapGaming. See you soon!")
    else:
        NewWord = TheWord[1:] + FirstLetter + lollish
        print("The result is,", NewWord)
        print ("Thank you for using the lol translator by SpeedyZapGaming. See you soon!")
else:
    print ("You have typed in nothing.")
    print ("OR... You typed in numbers.")
    print ("Please restart the translator")
Thank you for the Feedback!

And also, please type in the code I should edit, add or delete.  Think 
Thanks.
Reply


Messages In This Thread
The LOL Translator - by SpeedyZapGaming - Apr-12-2017, 07:16 PM
RE: The LOL Translator - by teenspirit - Apr-13-2017, 02:19 AM
RE: The LOL Translator - by SpeedyZapGaming - Apr-13-2017, 06:36 AM
RE: The LOL Translator - by buran - Apr-13-2017, 07:15 AM
RE: The LOL Translator - by SpeedyZapGaming - Apr-13-2017, 07:17 AM
RE: The LOL Translator - by zivoni - Apr-13-2017, 07:53 AM
RE: The LOL Translator - by SpeedyZapGaming - Apr-13-2017, 09:11 AM
RE: The LOL Translator - by GamingAgent - Apr-15-2017, 08:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Binary Translator (Using MATH instead of MATCH)) DataCorrupt 3 2,706 Jun-09-2020, 06:26 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020