Home » Python Programming » Python- Assignments » PYTHON PROGRAMMING – WEEK 4 – ASSIGNMENT(S)

PYTHON PROGRAMMING – WEEK 4 – ASSIGNMENT(S)

Python Programming Online Class

assignment

Week 4 Objectives
•Overview of Strings Link found here
•Overview of String Slicing-Dicing Link found here

Assignment:
• Provide me the following paragraph from the given value and email me your saved program.

Given Value: D = “09052016154523”

I am requesting you to slice out the information above to create the following paragraph. Try to use the  escape character for newline.

The day value is 09. The month value is 05.
The year value is 2016.The time is 15:45.
The second value is 23.

I will get you started.

# Week 4 Assignment
# Matt Cole
# Slicing Strings

D = “09052016154523”

print (“The day value is ” + D[0:2] + “. \n” +”The month”)

Quiz:
Week 4 Quiz


Leave a comment

Your email address will not be published. Required fields are marked *