Serial.write recieve

I am transmitting data using serial.write. I wanted to know how to receive in PC and format the data.

The easiest way to receive the data is using Serial Monitor, which is included with the Arduino IDE at Tools > Serial Monitor. Of course, Serial Monitor is expecting ASCII data, so if you're not sending ASCII then it's probably not the right choice. Otherwise, you can use any application that can receive serial data. There are several good free serial terminal programs to choose from, some thing called "PLX-DAQ" that allows you to write serial data into Excel after jumping though some hoops, or you can write your own serial data parsing code in a wide variety of programming languages.

That's pretty much the best answer you're going to get from such an incredibly vague question. If you want better answers, you would need to make the effort to provide more information about what you're trying to accomplish.

This Simple Python - Arduino demo may help.

If you want a Python program to send and receive binary data you will probably need to use the Python pack() and unpack() functions.

Sending data as human readable text makes debugging much easier.

...R