diff --git a/Programming_Languages/Python/Data_types.md b/Programming_Languages/Python/Data_types.md index 671ff20..e5d7896 100644 --- a/Programming_Languages/Python/Data_types.md +++ b/Programming_Languages/Python/Data_types.md @@ -1,15 +1,33 @@ --- -title: Python datatypes +title: Python data-types categories: - Programming Languages -tags: [python] +tags: [python, data-types] --- # Python datatypes -The core datatypes are as follows: +The core data-types are as follows: - str - bool - float - double +- ... + +## Converting data-types + +For every data-type there is a corresponding converter method, e.g: + +```python +a_string_int = "32" +as_int = int(a_string_int) +# 32 +a_float_int = "32.2" +as_float = float(a_float_int) +# 32.2 + +a_bool = "true" +as_bool = bool(a_bool) +# True +``` diff --git a/Programming_Languages/Python/Stout_stin.md b/Programming_Languages/Python/Stout_stin.md new file mode 100644 index 0000000..44af1dc --- /dev/null +++ b/Programming_Languages/Python/Stout_stin.md @@ -0,0 +1,10 @@ +--- +title: Standard input and output +categories: + - Programming Languages +tags: [python, data-types] +--- + +# Standard input and output + +https://www.youtube.com/watch?v=kqtD5dpn9C8&ab_channel=ProgrammingwithMosh