# Homework Problems on Variables

# ---
# Question 1: Variable Naming (SnakeCase, PascalCase, CamelCase)

# You need to assign a value to a variable using the proper naming conventions.

# Part A: Create a variable called my_favorite_color (using SnakeCase) and set its value to "blue".
my_favorite_color = "blue"

# Part B: Now, create a variable called MyFavoriteColor (using PascalCase) and set its value to "green".
MyFavoriteColor = "green"

# Part C: Explain why the PascalCase variable name should not be used in Python for regular variables.
# PascalCase is reserved for class names in Python, not regular variables, which should use SnakeCase.

# ---

# Question 2: Types of Variables

# Part A: Assign the following values to variables:

# 1. An integer my_age with the value 21.
my_age = 21

# 2. A float pi_value with the value 3.14159.
pi_value = 3.14159

# 3. A boolean is_student with the value True.
is_student = True

# 4. A string greeting_message with the value "Hello, World!".
greeting_message = "Hello, World!"

# Part B: Print each of these variables to see the output.
print(my_age)
print(pi_value)
print(is_student)
print(greeting_message)

# ---

# Question 3: How Variables Work

# Part A: Assign the string "Python Programming" to a variable called course_name.
course_name = "Python Programming"

# Then, print the following sentence using this variable:
print("I am learning " + course_name)

# Part B: Assign the integer 10 to a variable called num_items.
num_items = 10

# Then, print a sentence using this variable:
# Remember to use str() to convert the integer to a string when printing.
print("You have " + str(num_items) + " items in your cart.")

# Part C: Why do we need to use the str() function when printing the num_items variable in Part B?
# Explanation: We need to use str() because Python cannot concatenate strings with integers directly.
# The str() function converts the integer into a string, allowing us to print it alongside other strings.
21
3.14159
True
Hello, World!
I am learning Python Programming
You have 10 items in your cart.