Hello IT Pros! This is Alvendril. In this Video "Slice Strings in Python" I show how to take a specific portion of a String using indexes and save it in a variable.This is also know as String Slicing.
The string i use for this example is the CMD command: "whoami" that returns the name of the computer as well as the user logged. Next, I take what i need from the string and print it.
Hope it's useful!
Besides, I have a playlist of videos where I code useful Python Scripts. Link below.
📌Have some time to become better? Here're some Books I like:
Sapiens: https://amzn.to/2J7kXpH
Click here to Kill everyone: https://amzn.to/3dfHCy5
🎵 How about 2 audio books for free??
Get 30 Day Free Amazon Audible: https://amzn.to/38v9DPW
🛒 How about Amazon Prime for a Month?
Get 30 Days of 2 day delivery, Amazon Music, Prime Video and more: https://amzn.to/3itb469
► Don't forget to Like and Subscribe: https://shorturl.at/oGPR4
► Share This Video with a Friend: • Slice Strings in Python
► Add me in social media:
Twitter: / my_it_workshop
Instagram: / myitworkshop
►If you wish to support the channel: / myitworkshop
►Purchases made through some Amazon links may provide some compensation to this channel.
Please use them if you are thinking of buying the product, that way you help me make more videos :)
Sur cette page du site, vous pouvez voir la vidéo en ligne Slice Strings in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur My IT Workshop 11 septembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 361 fois et il a aimé 4 téléspectateurs. Bon visionnage!