MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / main

Function main

Speaking_Wikipedia/speaking_wikipedia.py:40–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 return text
39
40def main():
41 # Specify values:
42 wiki_page = input("Enter the name of the wikipedia page: ")
43
44 specify_num_of_sentences = input("Do you want to specify the number of sentences (default is 2)? (y/n): ")
45
46 if specify_num_of_sentences == "y" or specify_num_of_sentences == "Y":
47
48 num_of_sentences = input("Enter the number of sentences to include in the summary: ")
49
50 print(voicing_text(page(wiki_page, num_of_sentences)))
51 else:
52
53 print(voicing_text(page(wiki_page)))
54
55if __name__ == "__main__":
56 main()

Callers 1

Calls 2

voicing_textFunction · 0.85
pageFunction · 0.85

Tested by

no test coverage detected