Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 06a0e9a

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 60a6e2a according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/5a4c619c-9a07-4128-bef6-9b09ea6e0065/
1 parent 60a6e2a commit 06a0e9a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎Automatic Jokes generator/Jokes.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
rate = engine.getProperty('rate')
88
engine.setProperty('rate', rate+-20)
99

10+
1011
def speak(audio):
1112
engine.say(audio)
1213
engine.runAndWait()
1314

15+
1416
def joke():
1517
speak(pyjokes.get_joke())
1618

19+
1720
if __name__ == "__main__":
18-
joke()
21+
joke()

‎Automatic Jokes generator/laugh.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ def speak(audio):
1616
def joke():
1717
speak(pyjokes.get_joke())
1818

19-
if __name__=="__main__":
20-
joke()
19+
20+
if __name__ == "__main__":
21+
joke()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /