Python Exercise 9 Solution + Shoutouts | Python Tutorials For Absolute Beginners In Hindi #92

Code as described/written in the video

# Akhbaar padhke sunaao
import requests
import json

def speak(str):
    from win32com.client import Dispatch
    speak = Dispatch("SAPI.SpVoice")

if __name__ == '__main__':
    speak("News for today.. Lets begin")
    url = ""
    news = requests.get(url).text
    news_dict = json.loads(news)
    arts = news_dict['articles']
    for article in arts:
        speak("Moving on to the next news..Listen Carefully")

    speak("Thanks for listening...")


amolwagh at 2019-06-23 09:30:09 says
Sir Thanks for you create platfrom for python series. your series confidence to us for learn well python learning. Sir pywin32 module i am not understand in excercise 9. please provide link if possible to you regarding understanding the concept of pywin32.
amolwagh at 2019-06-23 09:30:09 says
Doccumentation regarding pywin32