Does the Quran preach violence

I am glad you joined this debate and I hope it would be enjoyavle for us. Anyway the Quran is a book of 114 chapters which must not be taken as parts and leave parts since it has dozens of peacefull verses and war verses and here are the peace verses: Chapter Al Mumtahinah:" God doesnt forbid youmto friend the dosbelievers who didnt fight you in the cause of religion and didnt out of your houses and you can love the, and deal justly with them" amd in Chapter Al Maidah it says" and dont letyour hatred to a nation drives you to deal unjustly with them.Deal jistly this is nearer to purity(Al Taqwah)" and im the same chapter it says "And dont let your hatred for people who have driven you out of Al Maskid Al Haram(Muslims hometown) make you attack them" these berses were revealed after Muhammed had an upper hand in Mecca when he retirned to his hometowm amd it says in Chapter Al Baqarah"no compulsion in relgion" and in Chapter of Al Furqan" and the Slaves ofthe Mosts Merciful(God) are those whom when the evildoers are harsh to them in speach they reply with peace" and we have in the Quran dozens of passages which speaks anout the people of the Book(Jews amd Christians) and the most wonderful is impn Surat AlmBaqarah " Those who have beloeved and those who are jews and those who are Christians amd the converts who believes in God amd the Day of Judgment then they must have no fear and they must be reliefed" and in Al Maidah it says" today the good things are made lawful for you andmthe food of the people of the book is lawful formyou amd your fodd is lawful for them" and also in Al Maidah" Dont argue woth the people of the book except with whatsbetter amd Say(O Muhammed): Our God amd your God is the same amd we believe in what was reavealed to you amd what was revealed to us from our God and we submit to Him" and even the Hypocrites who were spies on Muhammed we find in Chapter of Hupocrites (Al Minafiqoon) it says" and if you tell them(thenhypocrites) come andmlet the prophet seek God forgiveness on you they refuse" we see Prophet seeking God's forgiveness on the people who betrayed him and tried throce to assassinate him yet we find in the Quran verses like "He is who driven thenpeople of the Book out of their territories a group you captivyand a group you kill" amd "When the sacred months pass kill the imfidels wherever you find them" and "Dont take Jews and Christians as allies" and " Smite off their necks" well we smust understand that these arent general verses since I showed in the begining the verse which ORDERS muslims to treat peaceful disbelievers justly. andn allowing Muslims and people of Book eat together and even Marry from each other then how they werent friends amd allies? Well these verses were of ceratin people who attacked Muslims in Medina and driven them out from Mecca amd waged war on 300 unweapomed Muslims but God then gave a right for all the people to deffend thier lives amd only deffend since the verse says in Al Baqarah" Fight in the cause of God those who fight you only and dont offend simce God doesnt love offenders" amd "Of they cease their attack you must stop" and in Al Anfal"If they incline to peace incline to it too" and even in Surat al tawbah after the verse kill the imfidels it says " and if anynof the imfidels sekk your refuge then give it to them and make them hear the words of God then take him to a safe place" this shows that all verses in comsideration these harsh verses of war are only deffensive as I showed the verses whoch said that and even the captives of war should be freed according to Chapter of Muhammed"Put on thier chains(captives) and when war is end free them for no reward or free the,mafter paying ransom" and we find in the Quran God tellingnhis prophet about those who mock him " Forgive and love since God loves the forgivers" and heres one ofmmy favpurite verses in Al Mumtahina" May God make between you and those whomfought you from the disbelievers love and mercy" and lots and lots anyway sorry for the dozens of speeling mistakes since I am writing quickly