Contents

  1. ./ascii.py
  2. ./ascii_table.py
  3. ./top_down_encrypt.py

./ascii.py 1/3

[
top][prev][next]
# Conversion of a text message into ASCII
# by Sara Sprenkle

print()
print("This program converts a textual message into a sequence")
print("of numbers representing the ASCII encoding of the message.")
print()

message = input("Enter the message to encode: ")

print()
print("Here are the ASCII codes for '" + message + "':")

for ch in message:
    print(ord(ch), end=" ")

print()

./ascii_table.py 2/3

[
top][prev][next]
# Create a table of numbers (ASCII) and their character equivalent.
# by Sara Sprenkle

print("This program prints out part of the ASCII Table")
print("The ASCII value is followed by the character.")

for i in range(33, 127):
    print(i, "-->", chr(i))
    

./top_down_encrypt.py 3/3

[
top][prev][next]
# top-down template for encrypting a message.

def main():

    # get user input for message and key
    
    # confirm that user input and key are valid; if not, stop
    
    # encode message
    
    # display encoded message
    
def encryptLetter(lowercaseLetter, key):
    """
    
    returns the lowercaseLetter encrypted using key
    """

Generated by GNU Enscript 1.6.5.90.