Python Programming – String Conversion – Arrays (and vice versa)

    No Comments

    (1) Create a Python program that can make the phrase “Ahli Coding Programming Course” to “esruoC gnimmargorP gnidoC ilhA” (reverse all).
    Solution

    (2) Create a Pascal Triangle like down below :

    1
    1 1
    1 2 1
    1 3 3 1
    1 4 6 4 1

    Solution

    (3) Change the alphabetical order ‘ABCDEFGHIJKL’, to a triangle like this (empty space is replaced by ‘-‘):

    A
    B C
    D E F
    G H I J
    K L – – –

    Solution

    Categories: Python