From d9c4191e4d7a2039eef2e02c690162b19a94e56c Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Sun, 23 Nov 2025 02:25:50 +0530 Subject: [PATCH 01/13] adding useful comment for cat --- Cat/cat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cat/cat.py b/Cat/cat.py index 0c9ba120255..3024b35ef0a 100644 --- a/Cat/cat.py +++ b/Cat/cat.py @@ -47,6 +47,7 @@ def no_files(): # Graceful exit for Ctrl + C, Ctrl + D except KeyboardInterrupt: exit() + # exit when no data found in file except EOFError: exit() From f2e9b298f31113a02271e899df578a8a375df982 Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Sun, 23 Nov 2025 21:17:30 +0530 Subject: [PATCH 02/13] added round in main function --- BrowserHistory/rock_paper_scissors.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/BrowserHistory/rock_paper_scissors.py b/BrowserHistory/rock_paper_scissors.py index c6fb00102d6..dc5de392d7e 100644 --- a/BrowserHistory/rock_paper_scissors.py +++ b/BrowserHistory/rock_paper_scissors.py @@ -1,5 +1,5 @@ """ -Rock, Paper, Scissors Game (CLI Version) +Triple Round : Rock, Paper, Scissors Game (CLI Version) Author: Your Name """ @@ -38,10 +38,13 @@ def decide_winner(player, computer): def main(): """Main function to play the game.""" - user_choice = get_user_choice() - computer_choice = get_computer_choice() - print(f"Computer chose: {computer_choice}") - print(decide_winner(user_choice, computer_choice)) + for i in range(1, 4): + print(f"round -> {i}\n") + user_choice = get_user_choice() + computer_choice = get_computer_choice() + print(f"Computer chose: {computer_choice}") + + print(f"Final result : {decide_winner(user_choice, computer_choice)}") if __name__ == "__main__": From a5b695fd4f4f30bd2544470eb3414cb04262495d Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 22:20:11 +0530 Subject: [PATCH 03/13] Final Raound Comment --- BrowserHistory/rock_paper_scissors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/BrowserHistory/rock_paper_scissors.py b/BrowserHistory/rock_paper_scissors.py index dc5de392d7e..a9c4efa0616 100644 --- a/BrowserHistory/rock_paper_scissors.py +++ b/BrowserHistory/rock_paper_scissors.py @@ -1,5 +1,6 @@ """ Triple Round : Rock, Paper, Scissors Game (CLI Version) +Final round is the Winning Round Author: Your Name """ From 4cccb7107a926e3392709a2578606ca0d4374009 Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 22:30:22 +0530 Subject: [PATCH 04/13] main comment --- BrowserHistory/tests/test_browser_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BrowserHistory/tests/test_browser_history.py b/BrowserHistory/tests/test_browser_history.py index b1e0af744f7..fc07e86e0fc 100644 --- a/BrowserHistory/tests/test_browser_history.py +++ b/BrowserHistory/tests/test_browser_history.py @@ -88,6 +88,6 @@ def test_complex_navigation(self): # Verify we can't go forward to cleared history self.assertEqual(self.browser.forward(1), "page4.com") - +# starting point of code if __name__ == "__main__": unittest.main() From 03280c0fbe9e12b0f7ea2f5f9b620f8a6634e6bb Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 22:43:29 +0530 Subject: [PATCH 05/13] Exception handled by me --- voice.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/voice.py b/voice.py index 48b01b8b308..b5209729ff9 100644 --- a/voice.py +++ b/voice.py @@ -1,14 +1,18 @@ from gtts import gTTS +from colorama import Fore import os # Define the text you want to convert to speech text = "Hello! This is a sample text to convert to speech." -# Create a gTTS object -tts = gTTS(text=text, lang="en") +try: + # Create a gTTS object + tts = gTTS(text=text, lang="en") -# Save the audio file -tts.save("output.mp3") + # Save the audio file + tts.save("output.mp3") -# Play the audio file -os.system("start output.mp3") + # Play the audio file + os.system("start output.mp3") +except Exception as e: + print(Fore.RED, e, Fore.RESET) \ No newline at end of file From ffd6c3ca2c10eaf86a1227cca0613e616e084d9e Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 22:46:49 +0530 Subject: [PATCH 06/13] Exceotion handled by me --- voice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/voice.py b/voice.py index b5209729ff9..34e779d61ba 100644 --- a/voice.py +++ b/voice.py @@ -5,6 +5,7 @@ # Define the text you want to convert to speech text = "Hello! This is a sample text to convert to speech." +# Exception Handaled try: # Create a gTTS object tts = gTTS(text=text, lang="en") From f02b58262ec6f8be1935b9736036d45811d2f9b4 Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 22:52:18 +0530 Subject: [PATCH 07/13] use full commets. --- voice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voice.py b/voice.py index 34e779d61ba..5fbe24a2183 100644 --- a/voice.py +++ b/voice.py @@ -5,15 +5,15 @@ # Define the text you want to convert to speech text = "Hello! This is a sample text to convert to speech." -# Exception Handaled +# Exception Handaled. try: # Create a gTTS object tts = gTTS(text=text, lang="en") - # Save the audio file + # Save the audio file in mp3 format tts.save("output.mp3") - # Play the audio file + # Play the audio file from system os.system("start output.mp3") except Exception as e: print(Fore.RED, e, Fore.RESET) \ No newline at end of file From e87fd3e705453e52e3f5518bca2f4f0fe2eafa7a Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 23:34:59 +0530 Subject: [PATCH 08/13] Module Comments --- voice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/voice.py b/voice.py index 5fbe24a2183..20d7f358f1c 100644 --- a/voice.py +++ b/voice.py @@ -1,3 +1,4 @@ +# modules for use of voice from gtts import gTTS from colorama import Fore import os From f7f26c21a5db4a41e2ca0ed206e4288c552bbad5 Mon Sep 17 00:00:00 2001 From: "Mr. luffy" Date: Mon, 24 Nov 2025 18:08:45 +0000 Subject: [PATCH 09/13] hi --- oryx-build-commands.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 oryx-build-commands.txt diff --git a/oryx-build-commands.txt b/oryx-build-commands.txt new file mode 100644 index 00000000000..d647bdf7fdf --- /dev/null +++ b/oryx-build-commands.txt @@ -0,0 +1,2 @@ +PlatformWithVersion=Python +BuildCommands=conda env create --file environment.yml --prefix ./venv --quiet From 6a7496a53b55552fe8b50269d5c21075f261a743 Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Mon, 24 Nov 2025 23:47:09 +0530 Subject: [PATCH 10/13] main file code --- vowel remover function.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vowel remover function.py b/vowel remover function.py index 5af2ff5f01e..1942c30d6ae 100644 --- a/vowel remover function.py +++ b/vowel remover function.py @@ -4,4 +4,7 @@ def vowel_remover(text): if l.lower() not in "aeiou": string += l return string -print(vowel_remover("hello world!")) + +# this code runes on only this file +if __name__=="__main__": + print(vowel_remover("hello world!")) From 176b19b098b5f1283679f4fa51537e6df78391b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 18:35:08 +0000 Subject: [PATCH 11/13] Bump ccxt from 4.5.20 to 4.5.21 Bumps [ccxt](https://github.com/ccxt/ccxt) from 4.5.20 to 4.5.21. - [Release notes](https://github.com/ccxt/ccxt/releases) - [Changelog](https://github.com/ccxt/ccxt/blob/master/exchanges.cfg) - [Commits](https://github.com/ccxt/ccxt/compare/v4.5.20...v4.5.21) --- updated-dependencies: - dependency-name: ccxt dependency-version: 4.5.21 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements_with_versions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index e9829426e31..957c1baa9b6 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -81,7 +81,7 @@ Unidecode==1.4.0 Ball==0.2.9 pynput==1.8.1 gTTS==2.5.4 -ccxt==4.5.20 +ccxt==4.5.21 fitz==0.0.1.dev2 fastapi==0.121.1 Django==5.2.7 From 314fa9bfacabf8527dbb2e5fa4ccb6a18862a0e9 Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Tue, 25 Nov 2025 00:51:12 +0530 Subject: [PATCH 12/13] comment for start --- sha1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sha1.py b/sha1.py index 16a61e0ed75..1912a73751c 100644 --- a/sha1.py +++ b/sha1.py @@ -132,5 +132,6 @@ def main(): print(SHA1Hash(hash_input).final_hash()) +# starting point of code if __name__ == "__main__": main() From 64ecc54ec5d5c5811040242e0304fc611eed9186 Mon Sep 17 00:00:00 2001 From: mr-d-luffy Date: Tue, 25 Nov 2025 00:58:45 +0530 Subject: [PATCH 13/13] Hello Setup Completed --- youtubedownloader.py | 52 +++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/youtubedownloader.py b/youtubedownloader.py index b5667950a27..80362a737f3 100644 --- a/youtubedownloader.py +++ b/youtubedownloader.py @@ -20,31 +20,33 @@ def download(): except Exception: messagebox.showerror("Error", "An error occurred while downloading the video.") + +# This code runes on only this file +if __name__=="__main__": + root = Tk() + root.title("YouTube Downloader") + root.geometry("780x500+200+200") + root.configure(bg="olivedrab1") + root.resizable(False, False) + # Label widgets + introlable = Label( + root, + text="YouTube Video Downloader", + width=30, + relief="ridge", + bd=4, + font=("chiller", 26, "italic bold"), + fg="red", + ) + introlable.place(x=35, y=20) -root = Tk() -root.title("YouTube Downloader") -root.geometry("780x500+200+200") -root.configure(bg="olivedrab1") -root.resizable(False, False) -# Label widgets -introlable = Label( - root, - text="YouTube Video Downloader", - width=30, - relief="ridge", - bd=4, - font=("chiller", 26, "italic bold"), - fg="red", -) -introlable.place(x=35, y=20) + Label(root, text="Enter YouTube Link", font=("sans-serif", 16), bg="olivedrab1").place( + x=40, y=150 + ) -Label(root, text="Enter YouTube Link", font=("sans-serif", 16), bg="olivedrab1").place( - x=40, y=150 -) + url_box = Entry(root, font=("arial", 30), width=30) + url_box.place(x=40, y=180) -url_box = Entry(root, font=("arial", 30), width=30) -url_box.place(x=40, y=180) - -btn = Button(root, text="DOWNLOAD", font=("sans-serif", 25), command=threading) -btn.place(x=270, y=240) -root.mainloop() + btn = Button(root, text="DOWNLOAD", font=("sans-serif", 25), command=threading) + btn.place(x=270, y=240) + root.mainloop()