DiYane

Print Part of the ASCII Table

Jul 28th, 2023 (edited)
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def print_ascii_characters(start, end):
  2.     for char_code in range(start, end + 1):
  3.         print(chr(char_code), end=' ')
  4.  
  5. # Input
  6. start_index = int(input())
  7. end_index = int(input())
  8.  
  9. # Print the ASCII characters
  10. print_ascii_characters(start_index, end_index)
  11.  
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment