I am new to python program And I written a clientserver prog

I am new to python program. And I written a client/server program for adding two numbers. Client give two numbers and server adds up. While running, I am hitting with the above error on the client side

Client.py

Server.py

Solution

Below is the reason for the error:

When you get the raw input from user,

a & b value will be stored as string ( though it is a number ) like, 2 is a number but, \"2\" is a string/character.

So, convert the a & b value to integer by typecasting like int(a) and int(b),

== >

This will work... !

I am new to python program. And I written a client/server program for adding two numbers. Client give two numbers and server adds up. While running, I am hittin

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site