Creation and use of strings in Python

I created a basic program in Python with “string” variables and made a simple example using them.

In phyton, numbers can be called integers or floats, the strings are everything else that is considered as a letter or a word and any operation can not be made with strings as it can with integers, to create strings you just have to enter str() , int() for integers and float() for floats, for example:

str(0)+str(6)       pyhton will print ——–>    06

int(2)+int(5)       python will print ——–>     6

CC BY 4.0 Creation and use of strings in Python by Jorge Padilla is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.