print("this is a script giving you basic commands for python as well as example")
# A simple Python script to demonstrate basic commands

# 1. Output (Printing to the console)
print("Hello, world!")  # This will display "Hello, world!"

# 2. Variables and Data Types
name = "Aria"  # String
age = 20       # Integer
height = 1.75  # Float
is_student = True  # Boolean
# 3. Input (Getting input from the user)
user_name = input("What are you trying to do? ")
print("doing,", user_name + "!")  # String concatenation

# 4. Arithmetic Operations
a = 10
b = 5
sum_result = a + b         # Addition
difference = a - b        # Subtraction
product = a * b          # Multiplication
quotient = a / b         # Division
remainder = a % b        # Modulus (remainder)
exponentiation = a ** b  # Exponentiation
print("print hello world ")
print("name = input Enter your name: ")
print("x = 10 print(type(x))Output: <class 'int'>: ")
print("list variable my_list = [1, 2, 3]!: ")
print("import math        import is used to import moduals: ")
print("Sum:", sum_result)
print("Difference:", difference)
print("Product:", product)
print("Quotient:", quotient)
print("Remainder:", remainder)
print("Exponentiation:", exponentiation)

# 5. Conditional Statements (if/else)
if age >= 18:
    print("You are an adult.")
else:
    print("You are a minor.")

# 6. Loops (for loop)
for i in range(3):  # Loops 3 times (0, 1, 2)
    print("Iteration:", i)

# 7. Lists
my_list = [1, 2, 3, 4, 5]
print("Original list:", my_list)
print("First element:", my_list[0])  # Accessing the first element (index 0)
my_list.append(6)  # Adding an element to the end
print("List after appending 6:", my_list)

# 8. Functions
def greet(person_name):
    """This function greets the person."""
    print("Hello, " + person_name + "!")

greet("User")  # Calling the function
