11.3. ASCII Character CodesΒΆ
A listing of ASCII character codes is below. ASCII character codes character codes can be accessed using the following code:
for n in range(32, 127):
print(f'ASCII code: {n} Character: {chr(n)}')
ASCII code: 32 Character:
ASCII code: 33 Character: !
ASCII code: 34 Character: "
ASCII code: 35 Character: #
ASCII code: 36 Character: $
ASCII code: 37 Character: %
ASCII code: 38 Character: &
ASCII code: 39 Character: '
ASCII code: 40 Character: (
ASCII code: 41 Character: )
ASCII code: 42 Character: *
ASCII code: 43 Character: +
ASCII code: 44 Character: ,
ASCII code: 45 Character: -
ASCII code: 46 Character: .
ASCII code: 47 Character: /
ASCII code: 48 Character: 0
ASCII code: 49 Character: 1
ASCII code: 50 Character: 2
ASCII code: 51 Character: 3
ASCII code: 52 Character: 4
ASCII code: 53 Character: 5
ASCII code: 54 Character: 6
ASCII code: 55 Character: 7
ASCII code: 56 Character: 8
ASCII code: 57 Character: 9
ASCII code: 58 Character: :
ASCII code: 59 Character: ;
ASCII code: 60 Character: <
ASCII code: 61 Character: =
ASCII code: 62 Character: >
ASCII code: 63 Character: ?
ASCII code: 64 Character: @
ASCII code: 65 Character: A
ASCII code: 66 Character: B
ASCII code: 67 Character: C
ASCII code: 68 Character: D
ASCII code: 69 Character: E
ASCII code: 70 Character: F
ASCII code: 71 Character: G
ASCII code: 72 Character: H
ASCII code: 73 Character: I
ASCII code: 74 Character: J
ASCII code: 75 Character: K
ASCII code: 76 Character: L
ASCII code: 77 Character: M
ASCII code: 78 Character: N
ASCII code: 79 Character: O
ASCII code: 80 Character: P
ASCII code: 81 Character: Q
ASCII code: 82 Character: R
ASCII code: 83 Character: S
ASCII code: 84 Character: T
ASCII code: 85 Character: U
ASCII code: 86 Character: V
ASCII code: 87 Character: W
ASCII code: 88 Character: X
ASCII code: 89 Character: Y
ASCII code: 90 Character: Z
ASCII code: 91 Character: [
ASCII code: 92 Character: \
ASCII code: 93 Character: ]
ASCII code: 94 Character: ^
ASCII code: 95 Character: _
ASCII code: 96 Character: `
ASCII code: 97 Character: a
ASCII code: 98 Character: b
ASCII code: 99 Character: c
ASCII code: 100 Character: d
ASCII code: 101 Character: e
ASCII code: 102 Character: f
ASCII code: 103 Character: g
ASCII code: 104 Character: h
ASCII code: 105 Character: i
ASCII code: 106 Character: j
ASCII code: 107 Character: k
ASCII code: 108 Character: l
ASCII code: 109 Character: m
ASCII code: 110 Character: n
ASCII code: 111 Character: o
ASCII code: 112 Character: p
ASCII code: 113 Character: q
ASCII code: 114 Character: r
ASCII code: 115 Character: s
ASCII code: 116 Character: t
ASCII code: 117 Character: u
ASCII code: 118 Character: v
ASCII code: 119 Character: w
ASCII code: 120 Character: x
ASCII code: 121 Character: y
ASCII code: 122 Character: z
ASCII code: 123 Character: {
ASCII code: 124 Character: |
ASCII code: 125 Character: }
ASCII code: 126 Character: ~