Bart H.

asked • 04/03/21

Computer Science Question String Slicing

I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the date 1985-08 which isn't what I need

This is the code:

print("Date:{}".format(sorted_lowest_to_highest[i][1][:7]

[:7] that part is the only thing I need help with

1 Expert Answer

By:

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.