IDIOMS

learn sth by heart

Example: He has to learn all the kings and queens of England by heart to next week.