0
How to convert any user input (like numbers, letters, words, names, alphabet etc) into a string in Python ??
String conversion ??
2 Réponses
+ 4
Lakshya Mittal , you don't need to convert anything to string when using input(). this function returns everything you enter as a string by default.
+ 5
a = input() #type anything (int, float, char, ect)
print(type(a))
input() defaults to a string automatically