In this article, we will discuss the concept of python Program for Display all Alphabets using ASCII value
In this post, we are going to learn how to display all the upper case(A to Z) and lower case (a to z) Alphabets using ASCII value in Python programming language
The program displays all the upper case and lower case alphabet letters between a to z using for loop in Python language
Program 1
#printing all upper case alphabets print("All upper case alphabets are: ") for i in range(65,91): print(chr(i),end=' ') #displaying all upper case Alphabets with space #Ascii value of upper case alphabtes 65 - 91 #printing all lower case alphabets print("\nAll lower case alphabets are: ") for i in range(97,123): print(chr(i),end=' ') #displaying all lower case Alphabets with space #Ascii value of lower case alphabtes 97 - 123
When the above code is executed it produces the following result
All upper case alphabets are: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z All lower case alphabets are: a b c d e f g h i j k l m n o p q r s t u v w x y z
In the above program, we are using a for loop, this is used to print upper case Alphabet letters or lower case Alphabet letters using ASCII value
Suggested for you
Similar post
Java program to print all upper case and lower case Alphabets
C++ program to print all upper case and lower case Alphabets
C program to print all upper case and lower case Alphabets
C Program for Display Alphabets in Java using ASCII value
Java Program for Display Alphabets in Java using ASCII value
C++ Program for Display Alphabets in Java using ASCII value
Python Program for Display Alphabets in Java using ASCII value
PHP Star Triangle pattern program In this tutorial, we will discuss about PHP Star Triangle…
PHP Full Pyramid pattern program In this tutorial, we will discuss about PHP Full Pyramid…
5 methods to add two numbers in Java In this tutorial, we will discuss the…
Python full Pyramid star pattern program In this tutorial, we will discuss the concept of…
Write a function or method to convert C into F -Entered by the user In…
How to write a function or method to convert Celsius into Fahrenheit In this tutorial,…