Sunday, February 28, 2021

Pig Latin word

Pig Latin word

 Hi Viewer,


Below is my 1st Python Program related to Pig Latin word  


Code1: 

def pig_ln(word):

    first_letter=word[0]

    if first_letter in 'aeiou':

        pigword=word+'ay'

    else:

        pigword=word[1:]+first_letter+'ay'

    return pigword


No comments:

Post a Comment

2 Basic Python Program

  2 Basic Python Program : 1. Read and display user Inputs in Python Program  2.  Sum And Average of float numbers  using Python Program    ...