Published On Apr 23, 2022
Learn how you can use Python to print all the lowercase letters of the English alphabet!
This video shows you how to loop through a range of ASCII characters in order to print out all the letters a to z inside of Python.
PLUS: Learn how to do it all like a pro in one line of code at the end!
#programming #python #oneliners
You will learn:
- What ASCII means and how to use it in Python
- How to use the ordinal ord() and character chr() functions
- How to initialise lists and append numbers and letters using for loops and the list.append() method
- How to solve the entire problem in one line like a pro!
Chapter breakdown:
0:00 - Introduction
0:07 - What are ASCII codes?
0:31 - The ASCII codes we need
0:47 - Finding our ASCII codes using the web (method 1)
1:00 - Finding our ASCII codes using ord() in python (method 2)
1:38 - Creating a list and storing all the ASCII numbers
2:50 - Converting the ASCII numbers to letters and printing out a to z
3:51 - Bossing it out and solving the problem in one line of code!
how to print a to z in python, python, data, text, programming, teaching, learning, data science, artificial intelligence, computer science, software, hardware, engineering, how to, education, diy