Python Tutorial - Custom OS Commands (Personal Assistant)

Опубликовано: 30 Март 2026
на канале: Bytes Of Code
438
21

#python #pythonprogramming #coding #tutorial #mentor #programming

Let's add the ability to search google and turn off our computer with our personal assistant!

In this tutorial, we'll explore the "try-except" block, which is used to handle errors in Python code. We'll show you how to use this block to gracefully handle exceptions that may occur when executing system commands.

Next, we'll explore the "string.split" function, which allows us to split a string into a list of substrings based on a delimiter.



Chapters:
0:40 try except
7:20 Search Google For
8:15 String.Split()
10:40 Search Google For cont..
13:10 Good Night Computer

If you need help with any coding please do not hesitate to reach out to me or sign up for a mentor session at my website!
https://sites.google.com/view/bytesof...