Name

str()

Examples
b = False
y = -28
c = 'R'
f = -32.6
i = 1024
sb = str(b)
sy = str(y)
sc = str(c)
sf = str(f)
si = str(i)
sb = sb + sy + sc + sf + si
print(sb)  # Prints 'False-28R-32.61024'
Description Returns the string representation of primitive datatypes and arrays. For example the integer 3 will return the string "3", the float -12.6 will return the string "-12.6", and a Boolean value True will return the string "True".
Syntax
	str(var)
Parameters
varany int, float, character, string, boolean
Related string
String Formatting
.find()
.strip()
.join()
.replace()

Updated on Mon Sep 21 15:53:25 2020.

If you see any errors or have comments, please let us know.