Scripting
Basic data
var_string = "hello"
type(var_string) # returns: class 'str'
var_integer = 3
type(var_integer) # returns class 'int'
var_float = 3.0
type(var_float) # returns class 'float'
var_boolean = True
type(var_boolean) # returns class 'bool'
print(var_string) # OK
print("My number is: " + var_integer) # Will return error as we have two different types
print("My number is: " + str(var_integer)) # Integer will be converted to string and it will be OK
Lists
Last updated