+ 1
How is a letter being marked in python?
Like, an integer is marked as a "int", etc.
3 ответов
+ 1
You can convert a number to string using str()
+ 1
Python can tell you the type of data.
print(type(1))
print(type('a'))
print(type("a"))
print(type("abc"))
Output:
<class 'int'>
<class 'str'>
<class 'str'>
<class 'str'>
I think the answer to your question is that a letter is "marked" as a 'str'.
+ 1
Solomoni Railoa thanks 😊
I needed a character