Rewrite the following sentence into past tense:

"I am learning Spanish."
"I was learning Spanish."
Complete the following task based on the instruction and optional input provided.### Instruction:
Rewrite the following sentence into past tense:

"I am learning Spanish."

### Output:
"I was learning Spanish."