PLEASE SUBSCRIBE!!!
In the previous lesson ( • Python Programming: Lesson 68 - Hexadecima... ), we studied hexadecimal numbers in Python. They go to base 16, including the digits abcdef as well as 0123456789 as appearing in the decimal system. In this lesson, we learn about three more standard functions in Python:
1. ord(x) accepts a character and returns the numerical ASCII character code
2. chr(x) accepts a numerical ASCII character code and returns the character
3. zip(x,y) accepts two iterables x and y and yields tuples with corresponding elements from x and y (matching index positions)
0:03 Review of Frozen Dictionaries
2:35 Review of the Callable Function
3:13 Review of JSON
5:34 Example of Frozen Dictionaries
6:32 Example of the Callable Function
7:31 Review of Hex Numbers
9:41 NEW: ASCII Character Encoding
11:35 NEW: ord(x)
13:37 NEW: chr(x), the inverse of ord(x)
14:26 NEW: zip(x,y) Generator
In Java, we can also think about a character data type, with corresponding ASCII values. A similar lesson is provided here: • Java Programming: Lesson 16 - char Data Type
The next video is available here: • Python Programming: Lesson 70 - Pass by Va...
Thanks for watching, and PLEASE SUBSCRIBE!!!
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Programming: Lesson 69 - Character Encoding and the Zip Function durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur youmils03 21 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 129 fois et il a aimé 0 téléspectateurs. Bon visionnage!