Many people i know have problems concentraing while coding. What is your tip for staying concentrated and focused? I listen to Nirvana, because somehow kurt Cobains voice helps me being focused. Also, I found this great webpage https://musicforprogramming.net/ I recommend it, the music is pretty neat.
I just try to do projects that are interesting and that alone can be self sustaining for programming interest. If you are being forced to do a certain project, then whatever the purpose for doing it should be the drive, ie. A grade, peer-satisfaction, money (job) etc.