analogwrite function in python

How will Arduino's analogwrite function be in the python program for raspberry pi??

It won't be in a python program, its in the C++ program in the Arduino. Its not really clear what you want to do.

MarkT:
It won't be in a python program, its in the C++ program in the Arduino. Its not really clear what you want to do.

We use the analogwrite function in arduino software for an analog pin of arduino. So how will the analogwrite function programmed in python for raspberry pi??

analogwrite() in Arduino controls pulsewidth modulation (PWM).

The analogous methods in Python for RaspberryPi are in the GPIO module. This library uses software PWM.

There is also a hardware PWM capability accessible in Python via the pigpio library.