Coding
Instructions:
Submission:
You must submit the screenshot of these questions to verify your completion
Q1. Use Python Interpreter and write the code. Submit the screenshot and explain the answer
>>>name = “Elliott Hutchinson”
Write the output and explain why
Q2. Type the following program and explain the outcomes.
data = “Hi there!”
for index in range(len(data)):
print(index, data[index])
Q3: Use the Python software and write the following code. Run the program and fix the errors (if any). You must submit the screenshot.
code = input(“Enter the coded text: ”)
distance = int(input(“Enter the distance value: ”))
plainText = “ ”
for ch in code:
ord value = ord(ch)
cipherValue = ord value − distance
if cipherValue < ord(‘a’):
cipherValue = ord(‘z’) − \
(distance − (ord(‘a’) − ordvalue − 1))
plainText += chr(cipherValue)
print(plainText)
2 years ago
15
- Week 2 -- Protocols -- Team D
- questions about a company
- A+ Answers
- Integrated Capstone
- Economic Viability Policy Analysis
- Workplace memo
- Using Charts and Tables to Promote Organizational Efficiency - discussion
- watch the film and
- Your response should be four (4) double-spaced pages; refer to the "Assignment Format" page located on the Course Home page for specific format requirements.
- Link!