0

User input a letter then print its corresponding value (assigned by the programmer)

expected output: enter strings: abcde (each letter have corresponding value) how can i do it?

12th Feb 2021, 5:33 PM
zenitsu
6 Answers
13th Feb 2021, 12:13 PM
Abhay
Abhay - avatar
+ 1
What are inputs and output for this program?
12th Feb 2021, 5:41 PM
Abhay
Abhay - avatar
+ 1
zenitsu if the value of each letter is assigned by the programmer , then there must be some dictionary like structure with letter and it's corresponding value or do we have to create one with random values for each letter?
13th Feb 2021, 8:01 AM
Abhay
Abhay - avatar
+ 1
Abhay thankyouu!â˜ș
14th Feb 2021, 6:54 AM
zenitsu
0
Abhay example input: ABCD example output: 11,33,72,76 (the value of each letter is assigned by the programmer)
13th Feb 2021, 2:36 AM
zenitsu
0
Abhay yees, how can i do that dictionary-like-structure?
13th Feb 2021, 11:55 AM
zenitsu