Python Tutorial Guide #4 - Python Strings
Hedia
Hello Guys
Welcome to my fourth video on my python reference guide, this time it's all about strings! I will cover the basics of using strings to print sentences and words, how to cast variables as strings, how to add strings, and more!
Music by Royalty Free Music: ►Download ➜ https://cfmfreemusic.com/undefeated-h... Royalty Free Music | No Copyright Sounds | Undefeated - Hip Hop Beat Rap Instrumental
Some examples used in this video are from w3schools.com, I am not affiliated with them in anyway, their examples are used in order to save time and for my convenience when making these videos, as well as for my own debugging and learning as well: https://bit.ly/3cNBtZA
Also there is one method that I removed from this video that is the L-just method, it works like the following:
ljust:
x = "string" x.ljust(12, "?") output will be: 'string??????'
l-just simply adds the character you want placed in the second argument, to the right of the variable to assign it to the number of times stated in the first integer argument. Rjust does the same but to the left of the variable you assign it to!
Have a good one guys!
567773762 Bytes