N5
と
Quotation
木村さんが「3[さん]キロ歩いた」と言った。
Kimura-san said, 'I walked 3 km.'
Explanation
「と」 has 2 uses
1Exact words
Quotes the exact words inside 「」, followed by 言う, 聞く and so on: 「『おはよう』と言った」 (said "Good morning").
木村さんが「3[さん]キロ歩いた」と言った。
Kimura-san said, 'I walked 3 km.'
先生が「危ない!」と叫んだ。
The teacher yelled, 'Watch out!'
2Reported words, thoughts
Reports what someone said in plain form, or says what you think, often with 思う: 「明日は雨が降ると思う」 (I think it will rain tomorrow).
彼はとても親切だと聞きました。
I heard that he is very friendly.
あれは猫だと思う。
I think that is a cat.