title: How to run Python script to send data to Google PubSub
body: <p>From Google Console, I am creating a topic and publishing it and it is working fine. Now I want to do it from a Python script, which I have done but I don't know where to put those files in Google Pub/Sub. </p>
  
  <p>Can someone please teach me how can I accomplish it by using a script? I am new and I am student. I have never used Google Pub/Sub. I just want to make some random data and send it to Pub/Sub that's all I want. </p>
  
  <p>Someone told me I need web hosting to run those scripts, is it true? Please guide me briefly. For 3 days I've been reading docs and now everything is now messed up in my mind. In advance thank you.</p>