Question: Debug the following Python code. 1. Explain the problem 2. Write the correct, working code There are two errors in the following code: date
Debug the following Python code. 1. Explain the problem 2. Write the correct, working code There are two errors in the following code: date = "03/14/2022" month= day = date.split("-")[4] date = month + "/"+day+"/" + 2023 print(date) date.split{"-")[0]
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
In the line daydatesplit you are trying to split the date variable bu... View full answer
Get step-by-step solutions from verified subject matter experts
