python equivalent for char datatype in C -


is there python datatype equivalent char datatype in c? in c, char variable can store 1 byte of information. eg c code , output

void main() {    char a;    printf("enter value");    scanf("%d",&a);    printf("a = %d",a); } 

output

 enter value 255 = 255  enter value 256 = 0 

i want exact output in python. please me. in advance.

given usecase want modular behaviour, take input int, , a%256 find result want.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -