Question: Python (idle 3.6) Write a program that displays the characters in the ASCII character table from ! to ~. Display ten characters per line. The

Python (idle 3.6)

Write a program that displays the characters in the ASCII character table from ! to ~.

Display ten characters per line.

The characters are separated by exactly one space.

! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ;  ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ 

Every Key on your keyboard has a numerical representation. This number is called ASCII value.

The ASCII values are shown in the ASCII table below.

Hint: Please look at the example underneath the ASCII table for how to do this.

ASCII Table:

 Python (idle 3.6) Write a program that displays the characters in

ASCII Examples print('a') print(chr(97)) # shows 'a', which is the character for ASCII value 97 print(ord('a'))# shows '97', which is the ASCII value for character 'a' # while loop to print out the character represented # by 97 in ASCII and the next 4 characters, showing 2 characters per line count = 0 asciiValue = 97 while asciiValue  

De 32 20 040 Space! 64 40 100 @ | 96 60 ?40 G#96; , 33 21 041 ! 34 22 042 " 35 23 043 # 0 0 000 NUL (null) 65 41 101 | 97 61 141 a 66 42 102 B | 98 62 142 b 67 43 103 67: C | 99 63 143 c 68 44 104 D 1100 64 144 d 69 45 105 E |101 65 145 e: e 70 46 106 F 1102 66 146 f 71 47 107 G 1103 67 147 g 72 48 110 H 1104 68 150 h 73 49 111 ?73: 1 |105 69 151 105; i 74 4A 112 J |106 6A 152 J 75 4B 113 75; K |107 6B ?53 k 76 4C 114 L 1108 6C 154 ? 77 4D 115 M 1109 6D 155 m 78 4E 116 N |110 6E 156 n I ? 001 SOH (start of heading) 2 2 002 STX (start of text) 3 3 003 ETX (end of text) 4 4 004 EOT (end of transmission) | 36 24 044 37 25 045 % 38 26 046 G 39 27 047 40 28 050 ( 41 29 051 ) 55 005 ENQ (enquiry) 6 6006 ACK (acknowledge) 77 007 BEL (bell) 8 8 010 BS (backspace) 9 9 01l TAB (horizontal tab) 10 A 012 LF (NL line feed, new line)| 42 2A 052 11 B 013 VT (vertical tab) 12 C 014 FF (NP form feed, new page)| 44 2C 054 13 D 015 CR (carriage return) 14 E 016 S0 (shift out) 15 F 017 SI(shift in) 16 10 020 DLE (data link escape) 17 ?? 021 DC1 (device control 1) 18 12 022 DC2 (device control 2) 19 13 023 DC3 (device control 3) 20 14 024 DC4 (device control 4) 21 15 025 NAK (negative acknowledge) | 53 35 065 53: 5 22 16 026 SYN (synchronous idle) 23 17 027 ETB (end of trans . block) | 55 37 067 7 24 18 030 CAN (cancel) 25 19 031 EM (end of medium) 26 1A 032 SUB (substitute) 27 1B 033 ESC (escape) 28 1C 034 FS (file separator) 29 1D 035 GS (group separator) 30 1E 036 RS (record separator) 31 lF 037 US (unit separator) 43 2B 053 +: + 45 2D 055 - ; - 46 2E 056 . 47 2F 057 / 48 30 060 0 ; 0 49 31 061 1: 1 50 32 062 2 51 33 063 3: 3 52 34 064 4 80 50 120 P |112 70 160 p 81 51 121 Q |113 71 161 ??3: ? 82 52 122 R |??4 72 162 r 83 53 123 S |??5 73 163 s 84 54 124 T |116 74 164 t 85 55 125 U |117 75 165 u 86 56 126 v |118 76 166 v 87 57 127 ? |??9 77 167 88 58 130 X 1120 78 170 x 89 59 131 Y |?21 79 171 ? 90 5A 132 Z 1122 7A 172 z 91 5B 133 [ 1123 7B 173 { 92 5C 134 \ |124 7C 174 I 93 5D 135 ] |125 7D 175 } 94 5E 136 ^ |126 7E 176 95 5F 137 |127 7F 177 DEL 54 36 066 6: 6 56 38 070 8 57 39 071 9: 9 58 ?? 072 : 59 3B 073 ;: ; 60 3C 074 61 3D 075 62 3E 076 > 63 3F 077 #63

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!