Skip to content

Commit 460e908

Browse files
Merge pull request prathimacode-hub#535 from Vaibhav-Vipin/main
String to ASCII
2 parents f62ded0 + 34c552f commit 460e908

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Title:-
2+
ASCII of String
3+
4+
## Short Description :-
5+
A simple python script to know each ASCII value of a string.
6+
7+
## Setup instructions :-
8+
For script to work you need to have python3 installed in your system. <br>
9+
To run the script
10+
```
11+
python3 -u "ascii_of_string.py"
12+
13+
```
14+
## Detailed explanation :-
15+
Every character on the keyboard has its own ASCII (American Standard Code For Information Interchange) value. ASCII is used to translate a computer text to human text.
16+
And this python script helps us in knowing that ASCII value.
17+
18+
## Output:-
19+
<p align = "center">
20+
<img src="Images/ascii_of_string.png"/>
21+
</p>
22+
23+
## Author(s):-
24+
[Vaibhav Vipin](http://github.com/Vaibhav-Vipin)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# A python script to convert string to it's ASCII value
2+
print("Enter a String: ", end="")
3+
# end="" to make sure it take input from same line
4+
text = input()
5+
textlength = len(text)
6+
for char in text:
7+
ascii = ord(char)
8+
print(char, "\t", ascii)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
It is very simple amd beginner friendly project.
2+
3+
All you need is the python (3.X) install in your device and than you can run the program in any IDE
4+
Suggested : VScode , jupyter notebook , pycharm etc or any online IDE

0 commit comments

Comments
 (0)