# Creating a variable
my_variable = "Hello, world!"
# Printing the variable
print(my_variable)
Hello, world!my_variable and assign it the value "Hello, world!". The variable is created by simply choosing a name for it (in this case, my_variable) and using the assignment operator (=) to assign it a value.my_variable using the print function, which displays the value of the variable in the console.