Breaking News

New Updates

tad

Collapsible Code Blocks

Click Headings to View Code


def draw_pyramid(rows):
    """
    This function prints a pyramid pattern of stars.
    """
    for i in range(rows):
        # Print leading spaces
        print(' ' * (rows - i - 1), end='')
        # Print stars
        print('*' * (2 * i + 1))

# Example usage:
draw_pyramid(5)
        

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document Title</title>
</head>
<body>

    <h1>My First Heading</h1>
    <p>My first paragraph.</p>

</body>
</html>
        

.container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    height: 100vh;
    border: 2px solid #ccc;
}

.item {
    padding: 20px;
    background-color: #f0ad4e;
}
        
kollalllo LLE VERYE VENO

    <title>Document Title</title>
.item {
    padding: 20px;
    background-color: #f0ad4e;
}
        

No comments