int para amarrar python
# Use the function str() to turn an integer into a string
integer = 123
string = str(integer)
string
# Output:
# '123'
SkelliBoi
# Use the function str() to turn an integer into a string
integer = 123
string = str(integer)
string
# Output:
# '123'
import re
s = "12 hello 52 19 some random 15 number"
# Extract numbers and cast them to int
list_of_nums = map(int, re.findall('\d+', s))
print list_of_nums
int x = 5
string_from_int = str(x)
num = 10
text = str(num)
"""
Output
'10'
"""
# Convert integer to string using %s keyword
num = 10
print('type(num): ',type(num))
num_str = '%s' %num
print('type(num_str): ', type(num_str))
# Convert integer to string in Python using f-string method
num = 10
print('type(num): ',type(num))
num_str = f'{num}'
print('type(num_str): ', type(num_str))