Python strings as sequences of characters
Python strings are sequences of individual characters, and share their basic methods of access with those other Python sequences – lists and tuples. The simplest way of extracting single characters from strings (and individual members from any sequence) is to unpack them into corresponding variables.
Unfortunately, it's not often that we have the luxury of knowing in advance how many variables we are going to need in order to store every character in the string. And if the number of variables we supply doesn't match with the number of characters in the string, Python will give us an error.
Python Programming Free Course
https://www.youtube.com/playlist?list...
M S Excel Shortcut Jaldi Kam Khatam Karne Ke liye
https://www.youtube.com/playlist?list...
Tally Accounting In Hindi
https://www.youtube.com/playlist?list...
Busy Accounting Software Tutorial
https://www.youtube.com/playlist?list...
python string index split ko use karna sikhe hindi me abn fast python sleep | |
| 4 Likes | 4 Dislikes |
| 40 views views | 42K followers |
| Education | Upload TimePublished on 7 Feb 2019 |
Không có nhận xét nào:
Đăng nhận xét