SimeonTs

SUPyF2 D.Types and Vars Exercise - 05. Print Part of the ASC

Sep 27th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. """
  2. Data Types and Variables - Exercise
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1722#4
  4.  
  5. SUPyF2 D.Types and Vars Exercise - 05. Print Part of the ASCII Table
  6. Problem:
  7. Find online more information about ASCII (American Standard Code for Information Interchange) and write a program
  8. that prints part of the ASCII table of characters on the console.
  9. On the first line of input you will receive the char index you should start with and on the second line -
  10. the index of the last character you should print.
  11.  
  12. Examples
  13. Input:  Output:
  14. 60
  15. 65      < = > ? @ A
  16.  
  17. 69
  18. 79      E F G H I J K L M N O
  19.  
  20. 97
  21. 104     a b c d e f g h
  22.  
  23. 40
  24. 55      ( ) * + , - . / 0 1 2 3 4 5 6 7
  25. """
  26. for symbol in range(int(input()), int(input()) + 1):
  27.     print(chr(symbol), end=" ")
Add Comment
Please, Sign In to add comment