Question: CPT 180 Chapter 2 Assignment 2 Directions Using the following guidelines, create a python program. 1. Create the program swordfish.py from page 51, (41 in

 CPT 180 Chapter 2 Assignment 2 Directions Using the following guidelines,

CPT 180 Chapter 2 Assignment 2 Directions Using the following guidelines, create a python program. 1. Create the program swordfish.py from page 51, (41 in 2nd Edition). 2. Add three comment lines at the top of the program that contain: a. Program Name b. Program Description c. Programmer's Name (You) 3. Using a for loop and the range() function, add code at the end that will print out the alphabet as shown in the example output. 4. Submit the swordfish.py file into the Chapter 2 Assignment 2 Submission Folder. Hints 1. The Python chr() function will return the character corresponding to an ASCII value. This is useful inside of a for loop. a. Example: chr(65) = 'A', chr(66) = 'B' etc. 2. Research the Python print() function and the use of the end attribute to prevent an automatic line feed. Example Output (using Python Version 3.6) Python 3.6.4 Shell x File Edit Shell Debug Options Window Help Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64) ] on win32 Type "copyright", "credits" or "license()" for more information. ========== RESTART: E:\TTC Courses\cpt180\Assignments\swordfish.py Who are you? Joe Hello, Joe. What is the password? (It is a fish.) swordfish Access granted. ABCDEFGHIJKLMNOPQRSTUVWXYZ >>>|

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!