Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Does Python have a data type for a single character?

Vinay Rawal answered on April 2, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers


Does Python have a data type for a single character?

0

Python doesn’t define a data type for a single character. Unlike C which defines the char data type to hold a single character, Python considers everything enclosed in double or single quotes as strings. Mostly we only refer to a single character in Python when a string has a length of 1. 

Popularity 3/10 Helpfulness 1/10 Language python
Source: Grepper
Tags: python
Link to this answer
Share Copy Link
Contributed on Apr 02 2023
Vinay Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.