Yes, you can change the data type of a variable in Python by assigning a new value of a different data type to it. For example, you can change the data type of a variable from a string to an integer like this:
x = "10"
x = int(x)
In this example, the variable x is first assigned a value of "10" as a string. It is then converted to an integer using the int() function and assigned back to the variable x.