Linked Questions

44 votes
1 answer
193k views

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 ...
user2734815's user avatar
0 votes
4 answers
10k views

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 ...
Aayush's user avatar
  • 3
0 votes
3 answers
1k views

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) ...
That Fng Coder Legend's user avatar
4 votes
2 answers
1k views

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 ?
Hick's user avatar
  • 36.5k
2 votes
1 answer
3k views

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' ...
M.E.'s user avatar
  • 5,693
0 votes
2 answers
749 views

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 ...
user avatar
-1 votes
2 answers
693 views

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 ...
galaxies's user avatar
2 votes
1 answer
156 views

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, ...
daChi's user avatar
  • 43
-1 votes
3 answers
540 views

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.)
clurb's user avatar
  • 11
-3 votes
2 answers
279 views

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 =...
James's user avatar
  • 1
-4 votes
3 answers
265 views

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?
Cassie Baldus's user avatar
0 votes
1 answer
84 views

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 ...
Manfred Weis's user avatar
0 votes
2 answers
51 views

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: ...
user20232221's user avatar
1 vote
6 answers
7k views

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 ...
user avatar
3 votes
7 answers
5k views

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, ...
BOB's user avatar
  • 59

15 30 50 per page