Linked Questions
38 questions linked to/from How to get the ASCII value of a character
44 votes
1 answer
193k views
How to convert numbers to alphabet? [duplicate]
I read this thread about converting the alphabet to numbers but I don't understand how to convert the numbers back into letters. I would appreciate if someone could expand on that, especially and more ...
0 votes
4 answers
10k views
How to print each letter of ASCII VALUE [duplicate]
Hi everyone I was just exploring through ASCII in python. But the thing is i cannot find the ASCII value by each letter of the entered value With its corresponding letter. I was just able to find ...
0 votes
3 answers
1k views
How to convert a random number to its corresponding letter? [duplicate]
I have looked up this and not found anything usefule So I want to take a unknown number (1-26) and convert it to its corrosponding letter. Example: import random rand_let = random.randint(1,26) ...
4 votes
2 answers
1k views
whats the easiest way of converting a character into its ascii equivalent in python? [duplicate]
Possible Duplicate: ASCII value of a character in python The method I have applied is mapping the characters in an array . Is there a library for it ?
2 votes
1 answer
3k views
Get next character code adding 1 in Python [duplicate]
I have a variable which holds a letter. In order to have a concrete example let's assume it is 'A'. I have a while loop which on certain conditions will change that variable to the next letter ('B' ...
0 votes
2 answers
749 views
Printing escape sequence character in python [duplicate]
I tried to print the escape sequence characters or the ASCII representation of numbers in Python in a for loop. Like: for i in range(100, 150): b = "\%d" %i print(b) I expected the output ...
-1 votes
2 answers
693 views
Printing the unicode of all the letters in a word [duplicate]
I'm stuck on this question: user inputs a word, program outputs the unicode of each letter in the word this is how the input statement would look: word = input("Enter a word: ") Supposing the user ...
2 votes
1 answer
156 views
Python character generation [duplicate]
Is there an equivalent Python function to JavaScript's String.fromCharCode? The use case is a string generator and I'd like to use the ASCII decimal or hex values to generate the characters (numbers, ...
-1 votes
3 answers
540 views
how to make the function return ascii values of every character from the given string [duplicate]
Need to make a function that takes in a string and returns the ascii values for each letter in the string in a form of (103, 104, 105, etc.)
-3 votes
2 answers
279 views
Converting each individual letter of a string to ASCII equivalent - Python [duplicate]
How would one write a code to display the conversion of individual letters in a string to it's ASCII equivalent? One example of the output in shell would look like this: Enter a 3-letter word: Hey H =...
-4 votes
3 answers
265 views
How do I convert a list of characters into individual character strings in python? [duplicate]
if I have a list like this: list1 = ['a', 'b', 'c', 'd'] How can I convert them to characters so I can get the ASCII codes?
0 votes
1 answer
84 views
Generating character ranges in python [duplicate]
I want to "translate" integer values in the range from 0 to 26 to characters 'A' to 'Z', but that seems harder in python than in C++, where it is allowed to add integer values to char ...
0 votes
2 answers
51 views
Finding the amount of letters a word has but making sure the program doesnt count puctuation as a letter [duplicate]
file=open("apple.txt","r") letters=0 for line in file: words=line.split() for character in words: character = int(character) if character<=90 and character>=65: ...
1 vote
6 answers
7k views
Python code for calculating number of an alphabet
I need to find the number of an alphabet in the range of alphabets ie a = 1, b=2 , c =3.... So if i get a then the returning value should be 1 Is there a shorter method provided in python(inbuilt) to ...
3 votes
7 answers
5k views
How to convert a list into ASCII
How can I convert a list into ASCII, but I want to have a list again after I converted it. I found this for converting from ASCII to a list: L = [104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, ...