+ 2
What’s the input?
WHAT IS THE CODE TO CATEGORISE ALPAHBETS, NUMBERS AND PUNCTUATION MARKS?
6 Respuestas
+ 3
Eashan Wantu paste this code in code playground
import string
print(string.ascii_uppercase)
print(string.ascii_lowercase)
print(string.punctuation)
print(string.digits)
+ 2
Every character is stored in it's ASCII value. All you need is the range in which alphabets , numbers and punctuation marks are stored and and seperate them accordingly
Here is the ASCII table for reference 👇
https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html
0
show your attepmt
0
i made a code for categorising alphabets and not alphabets... but i want it to be more specific...and its pretty long too
0
thanks a lot!
0
import string
print(string.ascii_uppercase)
print(string.ascii_lowercase)
print(string.punctuation)
print(string.digits)