Each character has a unicode, you can find Farsi Characters unicode online, for example:
This will output a Farsi Character, for other characters, you just have to replace the number with the desired one.
if you want to use playground to print for you, do not forget to add the following code on top of the file:
sys.stdout = codecs.getwriter('utf_16')(sys.stdout.buffer, 'strict')
Check this out, i can see some arabic characters(not sure if they're farsi).
If that's not what youre looking for, then keep changing the range from 2000-3000 and so on.
it may cause a "time limit exceeded error" if range difference is greater than 1000