I have a python code which I want to deploy on firebase as my Application  database is firebase realtimeDB.
A part of this APP is developed on python so I want to integrate in with my App. Which can be done by deploying python piece of code on firebase.
I am unable to find a way to deploy a python code via firebase hosting.
Anyone have any solution I would really appreciate it.
I have tried to deploy it with firebase CLI tools. But I think it supports Javascript
You can't deploy any backend code with Firebase Hosting.  It only serves static content.  You will have to look into other ways of running your backend, such as Cloud Functions or App Engine.
How to deploy a python code on firebase server