''' For more information on this exercise, you can use this link: https://www.datacamp.com/tutorial/python-data-type-conversion # Type conversion Python infers the type of the variable based on context. In this exercise, we will explore three ways in which you can change the type of a variable by coding it in a specific way. We will do so by changing an integer into a float. ''' initial_integer = 5 print(type(initial_integer)) ''' # Redefining a variable When you redefine a variable (using `=`), Python immediately changes the type of the variable to match the definition. Redefine variable `initial_integer` to make it a float (hint: remember the definition of a float?). ''' initial_integer = # Put your code here print(type(initial_integer)) ''' As you can see, as we redefined the variable into one containing a decimal point, Python now recognizes it as a float. For the next exercise, we now need to go back to our initial integer; we do so by running the following code. ''' initial_integer = 5 print(type(initial_integer)) ''' # Using Python's built-in function To make a variable of a specific type, we can use Python's built-in type converters. To change a variable into a float, we use `float()`. To change it into an integer, we use `int()`. Convert the variable `initial_integer` to a float using the built-in converter. ''' initial_integer = #Put your code here print(type(initial_integer)) ''' Note that this will only work if Python can reasonably recognize the type you're converting to in the variable. For example, when we try to convert a complex number into a float, we run into a problem: ''' complex_number = 5 + 1j converted = float(complex_number) ''' For the next exercise, we again have to redefine the original integer so we can explore the last method to covert it to a float. Run the following code: ''' initial_integer = 5 print(type(initial_integer)) ''' # Using calculations As you perform calculations, Python will infer the new type based on the operations that you use. This is of course very useful, as there are many examples of going from an integer to a float by performing certain operations. Convert the variable `initial_integer` to a float by using numeric operators. ''' initial_integer = # Put your code here print(type(initial_integer))