Answers for "python numbers into string"

0

how to get a number from a string in python

string = "I am 14 years old"
for i in string.split():
  if i.isdigit():
    print(i)
print()
Posted by: Guest on February-11-2021
1

convert int to string python

int x = 5
string_from_int = str(x)
Posted by: Guest on June-18-2020

Code answers related to "python numbers into string"

Python Answers by Framework

Browse Popular Code Answers by Language