string.punctuation : Apart from letters and digits, python also provides us all the special characters in a pre-initialized string constant.If we want to access specific numbers then we can do so using slicing. It should be kept in mind that even though these are digits, the type is still a string constant, and all digits are concatenated like this – “0123456789”. string.digits : This is a pre-initialized string that contains all the digits in the Arabic numeral system i.e.Thus it provides us the whole letter set as a string that can be used as desired. Its value is non-locale dependent and it is just a concatenation of ascii_uppercase and ascii_lowercase. string.ascii_letters is a string constant which contains all the letters in ASCII ranging from A to Z and a to z. string.ascii_letters : ASCII is a system that is used to represent characters digitally, every ASCII character has its own unique code.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.DevOps Engineering - Planning to Production.Python Backend Development with Django(Live).Android App Development with Kotlin(Live).Full Stack Development with React & Node JS(Live).Java Programming - Beginner to Advanced.Data Structure & Algorithm-Self Paced(C++/JAVA).Data Structures & Algorithms in JavaScript.Data Structure & Algorithm Classes (Live).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |