new scrolled funcion added
Study Notes Platform
This is the main content for section A.
HTML uses tags to structure content. Example: <div>, <p>, <a> etc.
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)
Elements define structure, attributes add extra info (like href, class, id).
Examples: <header>, <footer>, <article>, <nav> improve SEO and readability.
This is the main content for section B.
Selectors target HTML elements for styling, e.g., class (.name) or ID (#name).
Flexbox arranges items in one dimension, Grid in two dimensions.
This is the main content for section C.
Use let, const, or var to store data. Example: let x = 5;
Functions define reusable code blocks. Example: function greet() { alert('Hi'); }
No comments