Hello in this tutorial we are going to look at converting between different data types. So there may be certain scenarios where you have like floating point number for example, and you need to convert it to a integer. And luckily Python alongside many other languages provide built in data conversion. So first of all, let's create a variable called var one assign it a value of 6.7. So we are going to print off var one and to actually convert it, all we do is print it off again, just do the data type that we want to convert it to. We want to convert it from a float to an integer.
So we are going to put end VA one. Save that, run it not save it. We just run it in here. There you go 6.7 and now it rounded it to six. So it's, well, it's not technically rounded, it's truncating it so it gets rid of the rest of the values. So you can convert, you know, from integers to floating point number, you know, we have long date conversion string conversion, you know, lift to pour, no carry to conversion, a whole heap of diff, and type of conversions.
So, what I'm going to do is pre link with this video, and it will have all the different types of data conversion you can do another next test on want you to go through all the different ones, and just experiment with it. So that's it for this demo. Thanks for watching, and I look forward to seeing you in the next tutorial.