What’s the input? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What’s the input?

WHAT IS THE CODE TO CATEGORISE ALPAHBETS, NUMBERS AND PUNCTUATION MARKS?

14th Mar 2020, 7:17 AM
Eashan Wantu
Eashan Wantu - avatar
6 Answers
+ 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)
14th Mar 2020, 7:35 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 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
14th Mar 2020, 7:29 AM
Arsenic
Arsenic - avatar
0
show your attepmt
14th Mar 2020, 7:29 AM
Wasi
Wasi - avatar
0
i made a code for categorising alphabets and not alphabets... but i want it to be more specific...and its pretty long too
14th Mar 2020, 7:33 AM
Eashan Wantu
Eashan Wantu - avatar
0
thanks a lot!
14th Mar 2020, 7:39 AM
Eashan Wantu
Eashan Wantu - avatar
0
import string print(string.ascii_uppercase) print(string.ascii_lowercase) print(string.punctuation) print(string.digits)
17th Mar 2020, 1:23 PM
Алексей Блок
Алексей Блок - avatar