This is the 384th most frequent Ukrainian word.
намагався
"Tried" or "attempted."
The word 'намагався' is used here to describe an attempt to achieve a goal or acquire a skill, indicating an effort toward learning piano.
Він намагався навчитися грати на піаніно.
He tried to learn to play the piano.
The word 'намагався' in this sentence highlights an effort to do something despite challenging conditions, specifically falling asleep.
Вчора я намагався заснути при шумі за вікном.
Yesterday I tried to fall asleep despite the noise outside the window.
Here, 'намагалися' indicates an attempt to achieve a time-sensitive task, such as reaching the train on time.