Assignment 1: Python practice solution

$24.99

Original Work ?

Download Details:

  • Name: 01-Python-Practice-a8lc4s.zip
  • Type: zip
  • Size: 52.63 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (7 votes)

Problem 1: Message Coder
For parts 1 and 2 you will need to use the functions ord and chr.
ord takes a character as an argument and returns its ASCII integer equivalent. For example:
ord(‘a’) returns 97
ord(‘A’) returns 65
chr takes an integer as an argument and returns the ASCII character equivalent to it. For example:
chr(97) returns ‘a’
chr(65) returns ‘A’
Note also that the entire character set has an ordering defined on it. So, the characters a to z are in
increasing order (a < b < …