Skip to content

Commit c611c08

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in d478fa7 according to the output from Autopep8. Details: None
1 parent d478fa7 commit c611c08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import wikipediaapi
22

3+
34
def get_wikipedia_content(page_title):
45
wiki_wiki = wikipediaapi.Wikipedia('en')
56
page = wiki_wiki.page(page_title)
@@ -9,12 +10,14 @@ def get_wikipedia_content(page_title):
910
else:
1011
return f"Page '{page_title}' does not exist on Wikipedia."
1112

13+
1214
def main():
1315
page_title = input("Enter the Wikipedia page title: ")
1416
content = get_wikipedia_content(page_title)
1517

1618
print(f"\nContent from Wikipedia for '{page_title}':\n")
1719
print(content)
1820

21+
1922
if __name__ == "__main__":
20-
main()
23+
main()

0 commit comments

Comments
 (0)