From b98d441490ae13d23676769520b21229e89d0a5b Mon Sep 17 00:00:00 2001 From: yabagiibrahim <55027665+yabagiibrahim@users.noreply.github.com> Date: Mon, 7 Oct 2019 03:06:45 +0100 Subject: [PATCH] 006 floats.md --- 006-Floats.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/006-Floats.md b/006-Floats.md index ac2dd84..dbbcc25 100644 --- a/006-Floats.md +++ b/006-Floats.md @@ -17,3 +17,10 @@ Here are two variables that have floating numbers assigned to them: pi = 3.1415 another_valid_float = 1.0 this_is_valid_too = 7. +##Printing floats +Python allows us to also print floats of an integer number. We do this by adding float at the beginning of the integer value +E.g >>>number=66 + >>>Print float(number). +Output >>> 66.0 + +