Untitled

mail@pastecode.io avatar
unknown
python
3 years ago
498 B
1
Indexable


#  *args  &  **kwargs  ( are Functional Parameters )



def myFunc9(a):
    charLits1 = []
    charLits2 = []

    for char in a:
        charLits1.append(char)
    print(charLits1)

    print("\n NEXT \n")

    numb = 0

    for elmnt in charLits1:

        if numb % 2 == 0:  # even
            charLits2 += elmnt.upper()
        else:
            charLits2 += elmnt.lower()
        numb += 1
    print(charLits2)

    charLits3 = " ".join(charLits2)

    print(charLits3)


myFunc9("adbcdefg")