Back
I am having some information in my variables. I have stored character type data, when I checked the type of that variable, it is coming as str:
Please see my input and output.
Input:a = 'c'type(a)
Input:
a = 'c'
type(a)
Output:class 'str'
Output:
class 'str'
Please be informed that Python does not have a character or char data type. All single characters are strings with length one.
31k questions
32.8k answers
501 comments
693 users