Bart H.

asked • 04/04/21

Computer Science Question - Python String slicing

so I need the date which is this 2001-08-11 to look this 08-2001 I need to slice it and the best I have come up with slicing it like this [ :7] which gives me the date to look like this 2001-08. I only need help with the two numbers in the string slicing index which will give me the date to look like what I said earlier [ : ] only one string slicing is needed and again only need the numbers no code is needed.

1 Expert Answer

By:

Patrick B. answered • 04/04/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.